Skip to main content
New Member
Jul 7, 2023 12:27 PM UTC
Solved

using & character in a variable in the delivery node

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.
SatheeskannaK
SatheeskannaKAccepted solution
Adobe Champion, Community Advisor, UG Leader
Jul 7, 2023 3:29 PM UTC

@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

3 replies

SatheeskannaK
Adobe Champion, Community Advisor, UG Leader
SatheeskannaKAdobe Champion, Community Advisor, UG LeaderAccepted solution
Adobe Champion, Community Advisor, UG Leader
Jul 7, 2023 3:29 PM UTC

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

Translate
Thanks, Sathees
LakshmiPravallika
Community Advisor
Community Advisor
Jul 10, 2023 9:40 AM UTC

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.

Translate
Sukrity_Wadhwa
Level 4
Aug 3, 2023 9:27 AM UTC

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!

Translate
Sukrity Wadhwa