Flow Designer for Inbound emails with multiple attachments.

Suprithabhonsle
Tera Expert

Hi all,

 

Am I trying to create a flow designer for inbound trigger where when the external user sends email with multiple attachments to ServiceNow, for each attachment a record should be created in the table.


Below is the following flow designer created.

Suprithabhonsle_0-1709549401069.png

Suprithabhonsle_1-1709549482176.png

 

help me to create a proper flow designer.

 

1 ACCEPTED SOLUTION

Suprithabhonsle
Tera Expert

Hi all, 
The correct answer for the above mentioned problem.
Below is the complete flow designer:

Suprithabhonsle_0-1709630907871.png

 

Follow the below screenshots to create a flow designer for multiple attachments.

Step1 : Create a inbound trigger

Suprithabhonsle_1-1709631147881.png

Step2 : Add lookup email attachments action

Suprithabhonsle_2-1709631267965.png

Step3 : Add foreach item

Suprithabhonsle_3-1709631395315.png

Step4 : Add create a record action

Suprithabhonsle_4-1709631461676.png

Step5 : Copy/Move Attachment action

Suprithabhonsle_5-1709631511460.png

Suprithabhonsle_6-1709631551720.png

Thank you.

 

 

If my answer helped you in any way, please then mark it as helpful or correct.

View solution in original post

5 REPLIES 5

Mark Manders
Mega Patron

So you get an email with attachments and every attachments needs to be attached to its own record? 
I think you need to get your first 'for each' out of there and just get your email attachments to create a record with the necessary fields filled from the inbound email and then use the move or copy attachment functionality to get the attachment on the record.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Suprithabhonsle
Tera Expert

Hi @Mark Manders , thanks for the reply.

 

This flow designer is for multiple attachments.
Firstly I have an email with multiple attachments where I will be sending it to ServiceNow. And I have a custom create table. So when I send mail to ServiceNow, a record should be created for each of the attachment.  

That's what I said: email comes in, do a lookup to the attachments on that email and for each attachment create a record.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Hi, I have done the flow designer for this. But it isn't working.
Should I have to add something to this or make any changes to the below flow designer.

Suprithabhonsle_1-1709622129373.png