Skip to main content
New Member
July 7, 2023
Respondido

using & character in a variable in the delivery node

  • July 7, 2023
  • 3 respostas
  • 705 Visualizações

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.

Este tópico foi fechado para respostas.
Melhor resposta por 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 Respostas

SatheeskannaK
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
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
Adobe Employee
Adobe Employee
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