In order to use personalisation in Jacquard variants using our Salesforce integrations, you must set any AMPscript variables you plan to use in the body of your content. These AMPscript variables must be written in a specific format to work properly.
You'll need to do this because Jacquard already uses AMPscript to populate language variants. If you were to then include standard personalisation without these special measures in the variant itself, it would mean you have AMPscript in AMPscript. Salesforce Marketing Cloud cannot natively process that.
This can be a little tough to understand conceptually, so let's look at an example of a basic first name tag.
The basics with first name
Let's say within your sendable data extension you have a column for first name personalisation called FirstName. To use this field within Jacquard variants, you would need to declare that variable in the body of the content in an AMPscript block first as in the below:
%%[
Var @FirstName
Set @FirstName = [FirstName]
]%%Now that you've included that block in your content, you can use the following format to actually call the variable in your Jacquard variant:
%%=v(@FirstName)=%% So, let's say you want your variant to read:
Hey Matthew, you look great today.
You would enter the following as the subject line:
Hey %%=v(@FirstName)=%%, you look great today.
That is the simplest form of rendering a first name variable. Remember, you would need to replace our FirstName example with whatever your actual first name field is called (e.g. FIRST_NAME, fname, First Name, etc.).