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 / Attaching Files to Azu...
Power Automate
Suggested Answer

Attaching Files to Azure Devops work item from Power Automate Flow

(0) ShareShare
ReportReport
Posted on by 2
I have a power automate flow that is triggered when an email arrives in a shared mailbox. A work item (Task) is created in Azure devops based upon the email. Sometimes the email has documents attached. I have tried various different variations in the power automate flow to attach the files to the work item but nothing seems to be working. I am stuck. I have faced two main issues as below:
 
1. Files get attached to the work item but they are corrupted.
2. Get an error that the file is not base 64 encoded.
 
I can provide all the details along with specific error messages that I have bumped into.
 
Interesting thing is that if I retest the flow using "Resubmit" from within power automate, it works and the files are not corrupted and I do not get the base 64 encoding error. I am confused.......
 
Can someone please please provide a working solution (that work consistently)?
 
Thanks!
 
I have the same question (0)
  • Expiscornovus Profile Picture
    33,874 Most Valuable Professional on at
     
    Have a look at this suggested answer from @abm abm, the usage of version 5.0 of the Azure DevOps REST api, using binary function for the content bytes and setting the body is base64 field to yes.
    https://community.powerplatform.com/forums/thread/details/?commentid=019affed-b052-ef11-b4ad-0022484f97fa


     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel
     
     
  • AZ-12011627-0 Profile Picture
    2 on at
    Unfortunately, that video is not helpful. In the video, the success case was done by resubmitting the flow from within Power automate. If you read my original post I clearly mentioned that it works with that scenario.
     
    I would like to get clarification from Microsoft what is going on with API and why this behavior? There is no clear answer anywhere. Can someone explain why this is not working......
  • Suggested answer
    Expiscornovus Profile Picture
    33,874 Most Valuable Professional on at
     
    Apologies if I wasn't clear. I wasn't talking about the video part/link. I was talking about the workaround in the comment below that video link (ignore the video). 
     
    Have you tried using a different version of the API and the body is base64 to Yes?
     
    Additionally, I would suggest to reach out to Microsoft/Azure DevOps support as well. They might be able to give you some clarification on the API itself:
    https://learn.microsoft.com/en-us/azure/devops/user-guide/provide-feedback?view=azure-devops

    Btw, I am not a Microsoft employee (like most people on this forum). This is community run place where we help each other out in our free time.




     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,005

#2
Valantis Profile Picture

Valantis 825

#3
Haque Profile Picture

Haque 619

Last 30 days Overall leaderboard