Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
AMPscript is a proprietary scripting language for Salesforce Marketing Cloud products that you can embed within HTML emails, text emails, landing pages and SMS messages to control the content that is displayed to the individual consumer. It also provides functionality to track impressions and highlight which content areas get the most attention from the viewer.
1
vote
Accepted
AMPScript does not look to be working
I would suggest you to use AttributeValue AmpSCript function and initialize First Name in variable.
%%[
SET @FirstName = AttributeValue("First Name")
SET @FromEmail = Lookup("TriggeredSendDataExtension …
1
vote
How do deal with "+" signs in Email for Unsubscription
You can use Replace AmpScript function to replace emailaddress '+' sign to any other special characters something like below. …
1
vote
Replace() : Needing to replace multiple character type from the same variable
I would suggest you to use Replace AmpScript function.
%%[
SET @String = "Amp Script!"
SET @String = Replace(@String,' ','_')
SET @String = Replace(@String,'!' … ,'_')
]%%
%%=v(@String)=%%
Output: Amp_Script_
Also, you can use ReplaceList AmpScript function if you want to replace one or more string value with another string.
%%=ReplaceList('Amp Script!' …
3
votes
Construct date time string from current date time using AMPscript
You can pass hh:mm:ss timeformat in FormatDate it self.
%%=FormatDate(now(),"yyyy-MM-ddT","hh:mm:ss")=%%
Output: 2016-09-28T04:02:36
5
votes
Accepted
Using the HTTP status code parameter in HTTPPost and HTTPost2 AMPscript functions
You have to set the variable to get the HTTP status code from the response payload.
%%[
SET @StatusCode = HTTPPost2('https://httpbin.org/post', 'text/html', 'hello', true, @httpPost2CallStatus, …
2
votes
Accepted
AMPscript - Redirect() combined with Concat?
Lots of ways to achieve this -
Example:1 You can use CloudPagesURL & Redirect AmpScript function and pass the additional parameter inside the CloudPagesURL.
%%[
SET @SubscriberKey = "[email protected] … "
IF Not Empty(@SubscriberKey) Then
Redirect(CloudPagesURL(PassCloudPageID,"sk", @SubscriberKey))
EndIF
]%%
Example:2 You can use Redirect & Concat AmpScript function to add the additional …
4
votes
Accepted
Format dd/mm/yy to mm/dd/yy in ampscript
SFMC uses the standard C# date formatting library, so you have to convert the input string to a date first.
%%=Format(StringToDate("28/03/2017"), "MM/dd/yyyy")=%%
Output: 03/28/2017
2
votes
SmartCapture form and Ampscript to add subscriber to multiple lists
Here's a quick example:
%%[
SET @Subscriber=CreateObject("Subscriber")
SetObjectProperty(@sub,"SubscriberKey", "[SubscriberKey here]")
SetObjectProperty(@Subscriber,"EmailAddress",[EmailAddress here …
3
votes
identify products from a data file string
Please utilizing the BuildRowSetFromString() AmpScript function. …
0
votes
identify products from a data file string
Hope this code will work for you.
%%[
SET @productValues = BuildRowsetFromString("product 1 || product 2 || product 4 || product 7","||")
For @i = 1 to RowCount(@productValues) DO
SET @Row = …
1
vote
Accepted
AmpScript - RSS Feed in email using BuildRowsetFromXML()
You have to check RowCount of title before returning the field value.
%%[
SET @xmlTemp = ContentAreaByName("my contents\XML\XMLtest")
SET @xml = Replace(@xmlTemp, "content:encoded", "conte …
10
votes
Not able to update Subscriber Status using Ampscript
you can not use DataView to update the subscriber status. you should use API AmpScript functions and below is the sample code for your reference.
%%[
SET @Subscriber = CreateObject("Subscriber")
SetObjectProperty …
1
vote
Accepted
Getting output System.Data.DataRow[] Instead of cloumn values from data extension
You're code looks correct and you just need to pass a @MyArea variable instead of @Area
%%[
SET @City = "London"
SET @Area = LookupRows('Salon data','City',@City)
SET @RowCount = Rowcount(@Area)
IF …
1
vote
AMPScript stopping loop
Here is a very simple trick to brack the For Loop -
%%[
SET @Data = LookUpRows('DE','SubscriberKey',@SubscriberKey)
SET @Count = RowCount(@Data)
IF @Count > 0 Then
For @i = 1 To @Count Do
…
2
votes
Accepted
Pass parameter in the Landing page URL
You have to use ConCat AmpScript function to add the parameter in the landing page.
%%[
SET @Firstname = "Johan"
SET @emailaddr = "[email protected]"
SET @URL = ConCat('http://mypage.com …