Skip to main content
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
Results tagged with
Search options not deleted user 65715

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
2 answers
700 views

Pass values using SSJS and AMPscript on email

Firstly, I apologise - I am a beginner with JavaScript and SSJS. I am trying to send an email with a CTA button that has an url to an external page, which will prepopulate values from a DE on the form …
s3002068's user avatar
  • 119
0 votes
2 answers
388 views

AMPScript if Substring equals X

I'm trying the below code so that if the last character of the string is S, then a variable will equal to Z. Am currently getting an error :( Appreciate your help %%[ SET @EndswithS = Substring(@Name …
s3002068's user avatar
  • 119
0 votes

AMPScript if Substring equals X

I've tested using the answers provided here and on this thread. The following should return the last two characters from input string. %%=Substring("abcdefg",Length("abcdefg") - 2,2)=%% However the …
s3002068's user avatar
  • 119
0 votes
2 answers
2k views

Format AM/PM DateTime to 24 hour time

I have a data 9/14/2019 4:37:57 PM I want to format this to: 20190914T163757 How do I format it so that if it includesPM to 24hour using ampscript? …
s3002068's user avatar
  • 119
0 votes
1 answer
2k views

Marketing Cloud Attribute Value

Having trouble understanding AttributeValue and have few questions: Is this like system attributes? Different to the Attribute and Attribute Groups you set in Contact Builder? i.e. Adding new attribu …
s3002068's user avatar
  • 119
0 votes
1 answer
364 views

Replace first 0 with two digits AMPscript

I would like to replace first 0 with two other digits in AMPscript E.g. 0123012345I would like this to be 98123012345 I've tried substring/replace but it looks for all 0s in the number and does not output …
s3002068's user avatar
  • 119
0 votes
1 answer
276 views

adding extra inline css attributes with ContentImageByID

AMPSCRIPT SET @ImageId = "28034" SET @FeatureImage1 = ContentImagebyID(@ImageId) ]%% I've tried using the following HTML which results in no changes to the width of the image: <td align="center" class …
s3002068's user avatar
  • 119
0 votes
1 answer
240 views

Personalisation String in Inline If statement

Does Inline If not work for personalisation strings? I have the following code: http://www.website.com?utm_source=sfmc&utm_medium=%%=IIF(NOT EMPTY(%%Variable1%%), %%Variable1%%, "")=%% Does not s …
s3002068's user avatar
  • 119
0 votes
1 answer
1k views

SSJS and AMPscript

I'm trying to output message if there is an error and i have very little knowledge in javascript in general. Could I get some feedback on if the following would work or how I would go about : If em …
s3002068's user avatar
  • 119
0 votes
0 answers
237 views

RetrieveSalesforceObjects from child BU

I am trying to use the RetrieveSalesforceObjects() function to look-up an object from child BU but the sync is to Parent BU (and we have sync de in shared de). Is there anything different I have to do …
s3002068's user avatar
  • 119