Flow Designer: Copy Attachments Not Working

Eric Paul
Tera Contributor

I have a flow that triggers when a record is added to a custom table of mine.

When that record is created, the flow needs to create a new record in the sys_data_sources table, and once that new record exists, i need to copy an attachment from the trigger record and add it to the new record on the data sources table.

I continue to get the following error:

find_real_file.png

 

 

Here is what the flow design looks like currently:

find_real_file.png

 

 

Once i'm able to get this attachment added, then i'll be creating a custom action to effectively kick off this data being loaded as an import set and the loaded/transformed.

 

This is my first go with Flow Designer, so any help is greatly appreciated.  Thank you!

17 REPLIES 17

Cheski Frank
Tera Contributor

Hi Leachy23,

You need to enter sys_attachment.list in the Filter navigator.

Cheers,

Cheski

Evan McElfresh
Giga Guru

To echo Bobby's reply, I too am having an issue getting more than one attachment to copy over to the new record.

 

The trigger is from the Service Catalog, and user attaches 2-5 images on the form.

An email is generated in Flow Designer for those images to be reviewed by a manager, but currently only the first image is coming over.

 

The attachmentList recognizes all the attachments:

[{"sys_id":"8e24a621db1741508c70c1391396194f","file_name":"Capture-01.PNG","file_size_in_bytes":"39911"},{"sys_id":"812466addbd341508c70c13913961987","file_name":"Capture.PNG","file_size_in_bytes":"21441"}]

But the Attachment Sys ID is only pulling: 8e24a621db1741508c70c1391396194f

 

Please help!

Please mark this response as correct and/or helpful if it assisted you with your question.

Mira1992
Kilo Sage

I just had a reqierement to copy attachments from the Work Order to the Work Order Task when a new Work Order Task is created.

I ended up using this flow:

Mira1992_0-1722502892162.png

Mira1992_1-1722502948746.png

Mira1992_2-1722503043654.png