cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Pardee
Regular Visitor

Nesting Array into email attachments

Attachment section in the email only accepts one variable and I have two arrays that I need to attach, however when I run it I get an error. My flow and the error message are below

 

 

Pardee_2-1660149324418.png

 

Pardee_3-1660149355669.png

 

Pardee_4-1660149375896.png

 

Pardee_5-1660149472717.png

 

Pardee_6-1660149512737.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Pardee 

 

Take a look at this approach which may work for you:

How to send Microsoft Forms file uploads from multiple questions to an Approval workflow using Power...

 

You just need to change the Append to Array actions to match the format for email attachments:

 

Snag_1d6544c.png

 


Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

4 REPLIES 4
ekarim2020
Super User
Super User

Hi @Pardee 

 

Can you use the same array for "collecting" the attachments and then use that single array for the email action?

 

Pardee_2-1660149324418.png


Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

@ekarim2020 Thanks for the response, The issue being these arrays are being populated via an form, I need multiple upload fields for the form, then all the attachments sent out via one email

 

If there is another way to accomplish that I am more than willing to pivot, especially if it can be done with a single array

Hi @Pardee 

 

Take a look at this approach which may work for you:

How to send Microsoft Forms file uploads from multiple questions to an Approval workflow using Power...

 

You just need to change the Append to Array actions to match the format for email attachments:

 

Snag_1d6544c.png

 


Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

@ekarim2020  Thank you so much for that guide, it was very educating!

 

I followed the guide precisely up until the approval action and then replaced it with an outlook email. the flow will run but I get no attachments at all

Pardee_0-1660157731937.pngPardee_1-1660157784674.png

 

*Note in the image the conditional statement was backwards, after this was fixed the same result however.

 

 

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (3,947)