Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards
SOLVED

Campaign Delivery- Attachment

Avatar

Level 2

Hi,

I want to export the data in temp work table as csv file & need to attach the file automatically to the email delivery, its fine if i export or import the file to my local machine or from the server. Need some help on this

Regards,

Raaghu

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Raaghu,

Please do what I mentioned above:

1. add a Delivery activity (NOT a continuous delivery), based on a Delivery Template (model) in which you select the To field as population coming from workflow.

2. In the wfk delivery activity, click on the 2nd tab (Script tab), then paste this:

delivery.attachment.add(
  <attachment compressMode="print" filterActive="false" label="my label"
              nameScriptActive="false" type="normal" upload="false">
    <name>{instance.vars.filename}</name>
  </attachment>)

delivery.hasAttachments = true

That's all

View solution in original post

21 Replies

Avatar

Level 2

Hello @Raaghuik and @Jean-Serge_Biro ,

I am using the same approach as above but I always have the same issue related to the mid-source instance.

DimitrisChatzos_0-1740663823056.png

Can you please advice on what the issue is?

Thanks a lot,