How to display a workflow variable value in email delivery

Avatar

Avatar

davidh2892249

Avatar

davidh2892249

davidh2892249

18-07-2018

Hi There,

I'm looking to personalise a simple workflow variable in a delivery.

Basically I simply want to display the number that a query activity outputs in an email delivery.

I was thinking it would be something like:

1530316_pastedImage_0.png

Query to return a number.

Javascript code to store the number as a variable:       instance.vars.queryCount = vars.recCount;

Then how do I personalise the "queryCount" variable value in a delivery?

I've read some other posts and i'm unsure on the steps and syntax required?

(Do i need to add anything to the initialization script of the workflow activity?

Do I need to add anything as a variable to the Variables tab under properties in the delivery template?

What should the syntax be for the personalisation tag in the HTML?)

A clear step by step example would be much appreciated.

Thanks

David

ps. I'm using v6.1.1 of Adobe Campaign Classic

View Entire Topic

Avatar

Avatar

ananya_kuthiala

Employee

Avatar

ananya_kuthiala

Employee

ananya_kuthiala
Employee

18-07-2018

Hello davidh24373890

If you have an instance variable created on a workflow ex(instance.vars.xxx)  you will have to perform the following steps

  1. Define a variable inside your delivery. You can do it by clicking on delivery properties (Variables tab) Define a delivery variable there
  2. On the workflow canvas, inside the Initialization Script section of the delivery activity, you will have to assign the instance.vars.xxx value to the delivery variable defined in step A.
  3. Then inside your delivery creative make use of this delivery variable for personalization

1530431_pastedImage_2.png

Hope this helps !!!

Regards,

Ananya Kuthiala