Skip to main content

Notifications

Power Automate - Building Flows
Answered

Multiple attachments corrupted when using Start and Wait for an Approval action

(0) ShareShare
ReportReport
Posted on by 1,085

Has anyone successfully tested and worked out sending multiple attachments using Start and Wait for an Approval Action? If so, I really need help in building my array expression correctly. I currently have below expression and somehow after referring to 10s of articles am unable to figure what is going wrong with my expression. Please help.

 

body('Get_attachment_content').$content

Also tried with outputs('Get_attachment_content')?['body']?['$content']. It would be great if someone explains me the difference. I assume both are same.

 

Though flow run successfully, my attachments coming to email are corrupted.

 

RameshMukka_0-1601242283593.png

 

  • Paulie-M Profile Picture
    Paulie-M 2 on at
    Re: Multiple attachments corrupted when using Start and Wait for an Approval action

    It's still possible for the files to get corrupted using the method you have used. You also need to provide the content type in order for it to work reliably (but it is confusing because it will often work without it).

     

    Because I spent so long figuring this out I wrote up my method for multiple attachments on approvals here.

     

    It is almost the same as the method you have used, but ensures you never get any corruption by providing the content-type in the array.

  • rameshmukka Profile Picture
    rameshmukka 1,085 on at
    Re: Multiple attachments corrupted when using Start and Wait for an Approval action

    @ChristianAbata It was so simple and i was banging my head literally to find out the right expression. Thanks a lot. Below simple array assignment has fixed my problem. Your video is great. Though I cant understand the language, your actions on the flow made me understand. Thanks once again.

     

    {
    "Name": "@{items('Apply_to_each')?['DisplayName']}",
    "Content": @{body('Get_attachment_content')?['body']}
    }

  • Verified answer
    ChristianAbata Profile Picture
    ChristianAbata 8,947 on at
    Re: Multiple attachments corrupted when using Start and Wait for an Approval action

    hi @RameshMukka  you can see my video about contens in Outlook and Approvals. Are diferents

     

    see https://www.youtube.com/watch?v=hhm3hR3HnFo

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard