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

SOLVED

Extraction File name in Direct Mail

Avatar

Level 3

Hi All,

I am trying to use a instance variable defined in a workflow, in the file name for the Direct Mail extract.

Steps Done:

1. Defined instance variable in a JS activity in the workflow.

2. Used this variable in the delivery variables tab as $(instance/vars/@var1) and named the variable as DelVariable1.

3. Used the variable from the delivery parameters in the file Name. <%= variables.DelVariable1 %>

The issue is:

We are getting an error while executing the delivery: Unable to parse the expression  $(instance/vars/@var1).

Can someone suggest anything?

Thanks,

Subhajit

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi Subhajit,

I think you should not place an @ in the XPATH.

$(instance/vars/var1)

in Javascript the syntax can use @ for the object.

Anyway I don't think that way it could work, using the xpath as is with deliveries variables.
I think you should use in the Delivery activity Javascript variables syntax:

delivery.variables._var[0].stringValue

as I also described in this ticket:

Re: To Read a variable in Delivery activity - Adobe Campaign

But let me know if I am wrong and you succeed to use XPath syntax instead.

Regards.
J-Serge

View solution in original post

0 Replies

Avatar

Correct answer by
Community Advisor

Hi Subhajit,

I think you should not place an @ in the XPATH.

$(instance/vars/var1)

in Javascript the syntax can use @ for the object.

Anyway I don't think that way it could work, using the xpath as is with deliveries variables.
I think you should use in the Delivery activity Javascript variables syntax:

delivery.variables._var[0].stringValue

as I also described in this ticket:

Re: To Read a variable in Delivery activity - Adobe Campaign

But let me know if I am wrong and you succeed to use XPath syntax instead.

Regards.
J-Serge