Skip to main content
Panos_
Level 2
Mar 29, 2019 1:55 PM UTC
Solved

Can I use a subject line variable in the email body?

Hi,

I would like to use a JS variable in the subject line of the email delivery activity and access it in the email body.

Do you know if (or how) I can do that?

The option of using a variable that has been inserted in an enrichment and access it in the email body of the delivery activity would be an alternative way of doing this.

If you have any recommendations on any of the above, please let me know.

Thank you in advance,

Panos

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Florian_CourgeyAccepted solution
Level 4
Apr 8, 2019 2:07 PM UTC

Hi Panos,

Sure, you can use this tutorial https://blog.floriancourgey.com/2018/05/how-to-add-variables-from-a-workflow-in-a-delivery

It's gonna help you "send" your variable from the workflow, to the delivery

Cheers

3 replies

Level 4
Mar 29, 2019 5:39 PM UTC

Hi,

You can use <%= message.delivery.mailParameters.subject %>:

This comes from the standard insert menu:

It is based on the schema nms:broadLogRcp, which is linked to the delivery via the Delivery link, so you may access any Delivery field:

Kind regards

Translate
Panos_
Panos_Author
Level 2
Apr 8, 2019 8:57 AM UTC

floriancourgey​ thank you for your answer, however what I mean is whether you can use a javascipt variable used in the subject line.

Not the subject line itself. Please let me know if you think of sth else that could be helpful!

Thanks

Panos

Translate
Florian_CourgeyAccepted solution
Level 4
Apr 8, 2019 2:07 PM UTC

Hi Panos,

Sure, you can use this tutorial https://blog.floriancourgey.com/2018/05/how-to-add-variables-from-a-workflow-in-a-delivery

It's gonna help you "send" your variable from the workflow, to the delivery

Cheers

Translate