Copy attachment from RITM returns erro

Stergios Stergi
Mega Guru

Hello, I have trouble setting up a flow that will send an email using the Send Email action that will contain the attachment(s) that the user has uploaded in the form submission process.

 

My flow is this:

 

StergiosStergi_1-1699607698002.png

 

And the look up Attachment action is a bit higher in the flow :

StergiosStergi_2-1699607753473.png

 

When I try the flow I receive this error:

StergiosStergi_3-1699607806633.png

 

Can someone give me any hints on this?

 

Thank you in advance!

 

 

1 ACCEPTED SOLUTION

Stergios Stergi
Mega Guru

Hello and thank you all for the replies! After a bit of fiddling I found the issue and corrected the flow!
Thank you all for looking into my issue!

View solution in original post

4 REPLIES 4

Anil Lande
Kilo Patron

Hi,

When you run the flow which record is fetched by 4th Step (Look up attachment)?

Are you getting expected attachment?

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Ankur Bawiskar
Tera Patron
Tera Patron

@Stergios Stergi 

check this link and try the approach, you might require a custom action for this

Using Flow Designer, add attachment to Send Email Action 

If it doesn't work then use normal email notification on RITM table and ensure Include attachment checkbox is true

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Stergios Stergi
Mega Guru

Hello and thank you all for the replies! After a bit of fiddling I found the issue and corrected the flow!
Thank you all for looking into my issue!

Stergios Stergi
Mega Guru

Hello!
I return to the thread again as I have another issue with the flow.

I have managed to copy the attachment to the send email action but in the case when there is more than one attachment on the RITM the flow only copies the first attachment.
Is there a way to copy all the attachments?

I tried to use the For each item in the attachment list action to look up the attachment and copy the attachment but I only receive the first attachment duplicated X times.

StergiosStergi_0-1700116959127.png