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

Eric Paul
Tera Contributor

I was able to accomplish this.  The trick was to lookup the attachments on the trigger record, then use the "Look Up Record" action on the sys_attachments table to get the attachment record to pass into the "Copy Attachment" action.  The end result looks like this, and works well.

 

Looks like Flow operators have changed since this was posted--I can't replicate the solution shown.  I'm trying to copy attachments from an Email trigger to a Request Item and nothing I've tried has worked...

Similar boat for Copy and Lookup Attachment when using the test flow action. However I found they worked once I activated the flow. odd.

Thank you, Eric, for your post! It helped me solve the issue with using the Copy Attachment action. It's not as simple as the documentation describes. I ended up executing a Look up Attachment and a Look up Record passing the attachment sys_id before I can use the Copy Attachment. 

MollieV_0-1680115616653.png