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 / Attachments in Approva...
Power Automate
Suggested Answer

Attachments in Approval Email Cannot Be Opened from AzureDevops Work Items

(0) ShareShare
ReportReport
Posted on by 2
Dear Power Automate Community,

I am experiencing an issue with my Power Automate flow. The flow retrieves attachments from Azure DevOps, processes them, and sends them in the Start and Wait for an Approval action. While the flow executes successfully, the attachments in the approval email cannot be opened and appear corrupted or unsupported.

Steps Taken:
  • Verified the content is Base64-encoded and decodes correctly.
  • Confirmed the array structure (name and content) is correct.
  • Ensured file names have proper extensions and are under 5MB.
     
Despite these checks, the attachments remain unopenable. I would appreciate any insights into why this might occur or suggestions for resolving the issue.

Thank you for your assistance!
Best regards,
AK
3.png
1.png
2.png
Categories:
I have the same question (0)
  • Suggested answer
    Ellis Karim Profile Picture
    11,937 Super User 2026 Season 1 on at
    Hi @BojaKassem​​​​​​​,
     
    In some instances the file attachment won’t open. You can try an alternative format for the attachments array:
     
    In APPROVALS 2 below I specify the content-type


    { 
      "content": {
        "$content-type": items('Apply_to_each')?['contentType'],
        "$content": items('Apply_to_each')?['contentBytes']
      },
      "name": items('Apply_to_each')?['name']
    }
    See: 
     
     
    Ellis Karim
    ​​​​​​​
  • BojaKassem Profile Picture
    2 on at
     Hi @EKarim This is the output after i updated the append to array it was fetching 
    the attachments when it was like: 

    {
      "name": "@{outputs('Attachment_Name')}",
      "content": {
        "$content-type": "@{if(empty(outputs('Attachment_Details')?['$content-type']), 'application/octet-stream', outputs('Attachment_Details')?['$content-type'])}",
        "$content": "@{base64(outputs('Attachment_Content'))}"
      }
    }


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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard