web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Approval with attachement array from email

(0) ShareShare
ReportReport
Posted on by 10

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 

 
I have the same question (0)
  • TeodorTeter Profile Picture
    10 on at
    Re: Approval with attachement array from email

    Untitled.png

  • Jay-Encodian Profile Picture
    2,920 on at
    Re: Approval with attachement array from email

    @TeodorTeter 

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

    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 Profile Picture
    10 on at
    Re: Approval with attachement array from email

    @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? 

  • Verified answer
    Jay-Encodian Profile Picture
    2,920 on at
    Re: Approval with attachement array from email

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

  • TeodorTeter Profile Picture
    10 on at
    Re: Approval with attachement array from email

    Thank you! 

     

    Now it works as it should from beginning

     

    TeodorTeter_1-1610702180256.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 659 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard