cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Eyk
Level: Powered On

Attach multiple attachments to approval email

I'm trying to create an approval flow which requires me to attach multiple attachments to the approval email sent out. I'm using "Start and Wait for an Approval" step, with an "attachmentArray" in the attachment section. When I run the flow, the approval step fails:

 

Screenshot 2019-12-06 at 11.43.28 AM.pngScreenshot 2019-12-06 at 11.44.45 AM.pngScreenshot 2019-12-06 at 11.46.08 AM.png

For the "Append to Array" step, I'm using the following expression to get the "ContentBytes":

 

body('Get_attachment_content').$content
 
Any advice?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Attach multiple attachments to approval email

Hi @Eyk 

 

The Attachments in Approvals are a bit different. While creating the array you need to use content instead of content bytes. You can checked my solved post here for more: https://powerusers.microsoft.com/t5/General-Power-Automate/Power-Automate-approval-with-Attachments/... 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

5 REPLIES 5
Super User
Super User

Re: Attach multiple attachments to approval email

Hi @Eyk 

In the append variable action where you are writing in the attachment content can you change the expression to: Base64(<attachementContentsVariable/>).

This should ensure the Base64 representation of the attachment content (the $content) is correctly appended to the variable.

If you're still having an issue, try adding the AttachmentContents variables in it's entirety to the array variable...

HTH

Jay

-------------------------------------------------------------------------

If I have answered your question, please mark your post as Solved.

If you like my response, please give it a Thumbs Up

Eyk
Level: Powered On

Re: Attach multiple attachments to approval email

Hi @Jay-Encodian,

 

I tried your suggestion and changed my expression to:

 

base64(body('Get_attachment_content').$content)
 
but unfortunately, the error persists. I tried attaching the AttachmentContent variable without any success as well. Thanks for the suggestion though!
Dual Super User
Dual Super User

Re: Attach multiple attachments to approval email

Hi @Eyk 

 

The Attachments in Approvals are a bit different. While creating the array you need to use content instead of content bytes. You can checked my solved post here for more: https://powerusers.microsoft.com/t5/General-Power-Automate/Power-Automate-approval-with-Attachments/... 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Eyk
Level: Powered On

Re: Attach multiple attachments to approval email

Hi @yashag2255,

 

Thanks for this solution! Tried it and now my attachments are successfully sent with the approval request.

Super User
Super User

Re: Attach multiple attachments to approval email

Hi @Eyk 

As per first post 😉

"If you're still having an issue, try adding the Attachment Contents variable in it's entirety to the array variable"

No worries I see you've got it working as @yashag2255 added the same instruction 🙂

My best

Jay

 

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Coming Soon: T-shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors
Users online (6,494)