using & character in a variable in the delivery node | Community
Skip to main content
July 7, 2023
Solved

using & character in a variable in the delivery node

  • July 7, 2023
  • 3 replies
  • 684 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SatheeskannaK

@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 %>

3 replies

SatheeskannaK
Community Advisor
SatheeskannaKCommunity AdvisorAccepted solution
Community Advisor
July 7, 2023

@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
LakshmiPravallika
Community Advisor
Community Advisor
July 10, 2023

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.

 

Delivery Content:

Displaying of Mirror Page:

Regards,

Pravallika.

Sukrity_Wadhwa
Community Manager
Community Manager
August 3, 2023

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