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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Attachments in Approva...
Power Automate
Unanswered

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
Categories:
I have the same question (0)
  • Suggested answer
    Ellis Karim Profile Picture
    11,657 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 463 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 427 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard