Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!
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
Level 10

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

2 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 3

Thanks Jean for your inputs. It worked.