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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate Approva...
Power Automate
Suggested Answer

Power Automate Approval - Attachments not opening

(0) ShareShare
ReportReport
Posted on by 2

Problem:
I'm using Start and wait for an approval action in Power Automate. The attachments are appearing in the approval email, but when I try to open them, they don't work. The files show up with correct names but won't open.

My Flow:

  1. Initialize variable: Emailattachmnets (Array) = []
  2. Get Document Attachments (Custom API that returns files with base64 encoding)
  3. Apply to each (looping through API response)
    • Append to array variable: Emailattachmnets
    • Value: {
        "name": "@{items('Apply_to_each')?['fileName']}",
        "content": "@{items('Apply_to_each')?['attachmentBase64']}"
      }
  4. Compose (for testing) - Shows correct output with 2 files
  5. Start and wait for an approval - Attachments: @variables('Emailattachmnets').

What's Working:

  • Files appear in approval email with correct names
  • Compose action shows proper array structure
  • Base64 strings are clean (no line breaks or spaces)


What's NOT Working:

  • Files won't open when clicked in approval email

  • Seems like base64 is not being properly decoded/converted

What I've Tried:


  • Using @outputs('Compose') instead of variable - same issue

  • Different field name variations (name/Name, contentBytes/ContentBytes)

  • The array structure looks correct in Compose output

Any help would be appreciated! Has anyone successfully sent multiple base64 attachments through approval emails?

Snipaste_2026-01-13_12-20-29.png
12.png
Snipaste_2026-01-13_12-27-52.png
0693_solver_8953d...
0693_solver_8953d...
0693_solver_8953d...
0693_solver_8953d...
0693_solver_8953d...
0693_solver_8953d...
0693_solver_8953d...
0693_solver_8953d...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • Suggested answer
    chiaraalina Profile Picture
    2,425 Super User 2026 Season 1 on at
     
    The attachment payload has to contain binary bytes, not a plain base64.
     
    Have you tried:
    {
      "name": "@{items('Apply_to_each')?['fileName']}",
      "contentBytes": "@{base64ToBinary(items('Apply_to_each')?['attachmentBase64'])}"
    }
     
    Let me know if it works!
  • HT-13010703-0 Profile Picture
    2 on at
    Yes I have tried this approach.

    I have used content instead of contentBytes. While using content faced the below error.


    When I am trying to it by using content, I can open up the pdfs but they are coming blank.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard