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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Who Me Too'd this topic

Avatar

Level 4

Hi All,

I have some doubts related to using variables inside delivery activity. I know how to do it using Enrichment and <%= targetData.foo %> in delivery. But I have some questions about other methods:

1) Let's assume that I have declared variable instance.vars.foo="foo" at the beginning of my workflow in JS activity. Why I can simply use <%= instance.vars.foo %> inside Alert activity (in technical workflow) and it works fine, but I can't use it in Delivery activity (in campaign workflow)? Returned error: "JST-#ID# Error while compiling script 'content htmlContent' line 4: instance is not defined. SCR-#ID# JavaScript: error while evaluating script 'content htmlContent'."

2) I have tried set up variable in Delivery/Properties/Variables. I used $(instance/vars/@foo) as an expression. But delivery failed again (error: "Unable to parse expression '$([instance/vars/foo])'. XTK-170018 Parameter of query '[instance/vars/foo]' is not defined in current context."). Any Idea why?

3) How can I assign instance.vars.foo to the variable in Delivery/Properties/Variables? I'm using Recurring delivery, so there is no Initialization Script tab in Properties.

I will appreciate your help.

Thank you,

Marcin

Who Me Too'd this topic