Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 1
Level 1
Panos_
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Panos_
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Panos_
Level 1

29-03-2019

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
Florian_Courgey
MVP

Likes

93 likes

Total Posts

87 posts

Correct Reply

19 solutions
Top badges earned
Springboard
Validate 1
Establish
Contributor
Ignite 1
View profile

Avatar
Springboard
MVP
Florian_Courgey
MVP

Likes

93 likes

Total Posts

87 posts

Correct Reply

19 solutions
Top badges earned
Springboard
Validate 1
Establish
Contributor
Ignite 1
View profile
Florian_Courgey
MVP

08-04-2019

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

Answers (2)

Answers (2)

Avatar

Avatar
Springboard
MVP
Florian_Courgey
MVP

Likes

93 likes

Total Posts

87 posts

Correct Reply

19 solutions
Top badges earned
Springboard
Validate 1
Establish
Contributor
Ignite 1
View profile

Avatar
Springboard
MVP
Florian_Courgey
MVP

Likes

93 likes

Total Posts

87 posts

Correct Reply

19 solutions
Top badges earned
Springboard
Validate 1
Establish
Contributor
Ignite 1
View profile
Florian_Courgey
MVP

29-03-2019

Hi,

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

20190329-133345-screenshot-6.jpg

20190329-133353-screenshot-7.jpg

This comes from the standard insert menu:

20190329-133723-screenshot-8.jpg

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:

20190329-133814-screenshot-9.jpg

Kind regards

Avatar

Avatar
Validate 1
Level 1
Panos_
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Panos_
Level 1

Likes

2 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Panos_
Level 1

08-04-2019

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