Message publication fails if I use an external unsubscription link with dynamic query parameters | Community
Skip to main content
Level 2
June 13, 2022
Solved

Message publication fails if I use an external unsubscription link with dynamic query parameters

  • June 13, 2022
  • 1 reply
  • 924 views

Hello all,
Despite AJO offers the possibility to use External Opt-Out/Unsubscription link, if I add functions (or even just profile attributes) to the URL, I'm allowed to save the message (html validation is ok) but publication fails as shown below.

 

Expression:
https://mywebsite/{%= profile.locale %}/unsubscribe_newsletter?id={%= profile.personID %}&service=NL

Did you face the same issue?
Do you know how to avoid this error and publish correctly the message? Maybe the escape of some chars might help?

Thank you,
Salvatore

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 Manoj_Kumar

Hello @salvatore_dange 

 

What I have seen is you can't the message when you are using variables that are not available in the profile or context of the event.

You will have to make sure the variable code is from the profile or the event context. Also, there should be any space between the variable name and the closing brackets.

 

 

 

 

1 reply

Manoj_Kumar
Community Advisor
Manoj_KumarCommunity AdvisorAccepted solution
Community Advisor
June 23, 2022

Hello @salvatore_dange 

 

What I have seen is you can't the message when you are using variables that are not available in the profile or context of the event.

You will have to make sure the variable code is from the profile or the event context. Also, there should be any space between the variable name and the closing brackets.

 

 

 

 

Manoj     Find me on LinkedIn