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

Extraction File name in Direct Mail

Avatar

Avatar
Validate 1
Level 3
subhajit9830660
Level 3

Likes

16 likes

Total Posts

33 posts

Correct Reply

5 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
Level 3
subhajit9830660
Level 3

Likes

16 likes

Total Posts

33 posts

Correct Reply

5 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
subhajit9830660
Level 3

20-10-2017

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
Jean-Serge_Biro
MVP

Likes

353 likes

Total Posts

464 posts

Correct Reply

153 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Validate 1
MVP
Jean-Serge_Biro
MVP

Likes

353 likes

Total Posts

464 posts

Correct Reply

153 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile
Jean-Serge_Biro
MVP

20-10-2017

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

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 3
subhajit9830660
Level 3

Likes

16 likes

Total Posts

33 posts

Correct Reply

5 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
Level 3
subhajit9830660
Level 3

Likes

16 likes

Total Posts

33 posts

Correct Reply

5 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
subhajit9830660
Level 3

24-10-2017

Thanks Jean for your inputs. It worked.