top of page

Leveraging AMPscript


Salesforce is hosting a session on AMPScript tomorrow and I am so excited to learn more about the features and functionality in Marketing Cloud. In order to prep for the session, I think it's important to prep with some basics:

What is AMPscript?

AMPscript is a scripting language that you can inject into messaging. It can be embedded into landing pages, HTML emails, SMS messages which is great to create messages that are personalized and dynamic leveraging Subscriber attributes.

How do you declare variables?

When you open up Content Builder and create a new email message, you can declare a variable by typing:

%%[

/*You can list any comments like the variables you are declaring and setting*/

VAR @FirstName

SET @FirstName = FirstName

]%%

What other things can you do with AMPscript?

You can CLEAN your data!

Ever received a message that says "Hi Kelly , "

Using the function Trim, you can return the string parameter with any leading and trailing white space removed. Woo hoo! Once less problem to worry about.

You can utilize IF statements to display different data based on a picklist field for that subscriber.

Do NOT forget to update your text version when you update HTML.

What other functions are available?

I found a Trailhead unit on AMPscript as well, so I know how I'll be spending my afternoon!


Featured Posts
Recent Posts
Archive
Search By Tags
No tags yet.
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square
Kelly Bentubo Salesforce Geeking Out
bottom of page