Hi all,
need one help based on your old post
I need to add 2 attachment coming from data extraction activity in Recurring delivery activit
JS activity:
instance.vars.filetest = vars.filename;
instance.vars.filetest = vars.filename1;
cOde in open tab of recurring delivery:
delivery.attachment.add(
<attachment compressMode="print" filterActive="false" label="my label"
nameScriptActive="false" type="normal" upload="false">
<name>{instance.vars.filetest,instance.vars.filetest1}</name>
</attachment>)
delivery.hasAttachments = true
Reference
however with below workflow I am able to get 1 attachment in delivery as I am sending only 1 file here
can un please help me here how can i send 2 attachments via one delivery
how can i modify the code and where
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @DishaSharma ,
Store both file name in 2 different variables, and use the below script in delivery
delivery.attachment.add(
<attachment compressMode="print" filterActive="false" label="my label"
nameScriptActive="false" type="normal" upload="false">
<name>{instance.vars.file_1}</name>
</attachment>);
delivery.attachment.add(
<attachment compressMode="print" filterActive="false" label="my label"
nameScriptActive="false" type="normal" upload="false">
<name>{instance.vars.file_2}</name>
</attachment>);
delivery.hasAttachments = true
Hi @DishaSharma ,
Store both file name in 2 different variables, and use the below script in delivery
delivery.attachment.add(
<attachment compressMode="print" filterActive="false" label="my label"
nameScriptActive="false" type="normal" upload="false">
<name>{instance.vars.file_1}</name>
</attachment>);
delivery.attachment.add(
<attachment compressMode="print" filterActive="false" label="my label"
nameScriptActive="false" type="normal" upload="false">
<name>{instance.vars.file_2}</name>
</attachment>);
delivery.hasAttachments = true
Hi, Thanks for your reply..
but I have tried the script which u mentioned in delivery activity
but with this script my delivery is getting failed, it is NOT Getting to finished state
It seems may be something wrong m doing, can u please tell me what should I put in Javascript activity, may be this is the issue
below code i am using in Javascript activity
instance.vars.file_1=vars.filename1;
instance.vars.file_2=vars.filename2;
Please let me know if this fine or I need to make some changes
Views
Replies
Total Likes
@DishaSharma , Use the below script in its respective JS activity,
//JS 1 activity:
instance.vars.file_1 = vars.filename;
//JS 2 activity:
instance.vars.file_2 = vars.filename;
Views
Replies
Total Likes
thanks a lot..It worked
Views
Replies
Total Likes