Email Script (Velocity) My.Tokens Not Displaying Default Values

Issue

Issue Description
Velocity scripted tokens are not displaying the default value in the asset if the information required for the token is not in the database.

 

 


Solution

Issue Resolution

Email Script tokens are not designed to work with the {{my.token:default=Some Value}} syntax, which is for simple tokens.

Rather, you must output the default value within the code (using #if/#else, $display.alt or any other conditions) then include just {{my.token}} in the email.

Examples can be found here: https://developers.marketo.com/email-scripting/


Labels (1)