Expand my Community achievements bar.

SOLVED

using & character in a variable in the delivery node

Avatar

Level 1

We have a text field variable in the delivery node that when we add '&' character to it such as "8B430286-56F9-4817-ACBA-F8527A7FCD31?mc=1815950-b&". Adobe strips the & character from the field.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@woho, Special characters like & used at the end of variable(s) value should be handled within the email editor. Here is how we use it in the email editor to reference the variable(s) created in the delivery variables tab.

Consider the campaign variable value as "8B430286-56F9-4817-ACBA-F8527A7FCD31?mc=1815950-b&" and how it's referenced in the email template,

<%= variables.campaign %>&utm_source=<%= variables.utm_source %>&utm_medium=<%= variables.utm_medium %>

Thanks, Sathees

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

@woho, Special characters like & used at the end of variable(s) value should be handled within the email editor. Here is how we use it in the email editor to reference the variable(s) created in the delivery variables tab.

Consider the campaign variable value as "8B430286-56F9-4817-ACBA-F8527A7FCD31?mc=1815950-b&" and how it's referenced in the email template,

<%= variables.campaign %>&utm_source=<%= variables.utm_source %>&utm_medium=<%= variables.utm_medium %>

Thanks, Sathees

Avatar

Community Advisor

Hi @woho ,

 

Please try using below steps. For me the & Character is not truncated.

 

Please note: In the Preview of the Variable even though after adding &, you can see that it got truncated, but still try printing the Variable inside the Delivery and test it, it worked for me.

 

LakshmiPravallika_0-1688981916317.png

Delivery Content:

LakshmiPravallika_1-1688981960880.png

Displaying of Mirror Page:

LakshmiPravallika_2-1688982012147.png

Regards,

Pravallika.

Avatar

Administrator

Hi @woho,

Were you able to resolve this query with the help of the given solutions or do you still need more help here? Do let us know. In case the given solutions were helpful, then kindly choose the one that helped you the most as the 'Correct Reply'.
Thanks!



Sukrity Wadhwa