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
Solved! Go to Solution.
Views
Replies
Total Likes
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
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
Thanks Jean for your inputs. It worked.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies