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

Stephen MacArth
Kilo Contributor

So glad you posted this - it was very helpful!  I'm new to Flow Designer myself and was having a rough go with the copy requirement but this pointed me in the right direction.

Hans-Joachim L1
Kilo Contributor
Thanks alot. The post helped me a lot. I am currently taking my first steps in Flow designer. You are my heroes.
I have been trying to solve this problem for a long time.
This solution is a possible way and it works just fine.

best Regards
Hans-Joachim

Bobby4
Tera Contributor

Hi...this is my first post.  I am new to using Flow Designer as well and replicated your steps, Eric.  This works very well.  However, if there are multiple attachments it copies only one.  I tried to change the Lookup Record to Lookup Records, but it seems the Copy Attachment only facilitate one.

Any help is appreciated.

Hi Bobby,

 

If you are still looking for a solution, you can use look up records followed by for each. Sequence of steps is as follows:

Look up records

If count is greater than 0 then

For each item in (Look up records)

Look up record

Copy attachment

 

It worked for me.

Akshaya, I was able to get this to work.  Thanks for the assist.  Here's the logic is used within flow designer.  it worked for 4 attachments related to one RITM--hope this is helpful to others.  Cheers.