cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TeodorTeter
Frequent Visitor

Approval with attachement array from email

Hello, 

 

Im trying o attach an attachments array in Approval. Im failing each time. Either the file is corrupted or is empty. I tried multiplie solutions from forums

 

1) Add multiple attachments to an approval email with Power Automate (tachytelic.net) - empty or corrupted file

2) Solved: Re: Power Automate approval with Attachments - Power Platform Community (microsoft.com) - corrupted file

3)Solved: Attachment corruption on approval emails - Power Platform Community (microsoft.com) - corrupted file

 

i tried couple other of versions which combines all above and some other treads that i found. each time effect was the same - corrupted or empty file. 

 

i tried making attachments array directly from email attachments, i tried saving them on SP and on OneDrive.  

 

current attempt look like this - effect -> corrupted files. Files that are saved on OneDrive are fine, they open properly.

 
 
 

So you are my last hope - any ideas on how to make it run? Please help 😞

 

in case its important - All attachments are in PDF 

 
1 ACCEPTED SOLUTION

Accepted Solutions

@TeodorTeter - Yes, just use attachment content and do not wrap in the base64() expression.

View solution in original post

5 REPLIES 5
TeodorTeter
Frequent Visitor

Untitled.png

@TeodorTeter 

This video has you covered - https://powerusers.microsoft.com/t5/Webinars-and-Video-Gallery/Add-Multiple-Attachments-to-an-Approv...

Having reviewed your screenshot I would expect you need to remove the "" around the base64() expression... as the quotes tell PA that you are adding a string, and therefor it will try to re-encode the content, in affect base64 encoding a base64 string... thus a corrupt file.

TeodorTeter
Frequent Visitor

@Jay-Encodian  - it helped! however only while I'm saving the attachment on on OneDrive. and using advanced scenario 

{
"name": "file.docx",
"content": {
"$content-type": "application/octet-stream",
"$content":
}
}

 

Is there any way to make it run directly from email attachments? 

@TeodorTeter - Yes, just use attachment content and do not wrap in the base64() expression.

TeodorTeter
Frequent Visitor

Thank you! 

 

Now it works as it should from beginning

 

TeodorTeter_1-1610702180256.png

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,638)