Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Attachments to Azure DevOps


So i've been working on a scenario where i have to upload an attachment coming from email to Azure DevOps ticket,

I've read a lot of similar threads but didn't got any success anywhere, after some discussions and research i've finally developed 2 flows ( since i'm just researching on it, will combine them later ) one which gives the URL of the attachment uploaded and the other one which actually uploads the attachment as can be seen below : 


I've taken the help of Microsoft docs :


The problem i'm facing is that i'm passing "Attachment Content" in the body of the http request while uploading the attachment. Thus the final uploaded attachment after the running of 2 flows is in encoded format also can be seen below :Attachment.PNG

Flow 1.PNGFlow 2.PNG

Community Support Team
Community Support Team

Re: Attachments to Azure DevOps


Hi @SaifAli ,


It seems that what is needed here is the binary file. Please consider using base64ToBinary() function to convert the string.


Image reference:


Hope it helps.


Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Level: Powered On

Re: Attachments to Azure DevOps

@v-bacao-msft, Thanks for your help, but unfortuanately it didn't worked somehow.


When i tried with the compose step and used below expression there


can be seen below in the screenshot after one refresh it got changed to "Attachment Content" in place of expression. and then the input and output becomes same again also can be seen below 


Later i tried to directly pass the base64 string to the function but it is giving me expression invalid error, seems to me that it is because the base 64 string is really long. Any suggestions here??


Flow 3.PNGAdded the expression "base64ToBinary(Items('Apply_to_each')?['ContentBytes'])"Flow 4.PNGAutomatically changing to "Attachment Content"Flow 5.PNGwhile directly putting the base 64 encoded string

Helpful resources


Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.


Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.


Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 100 members 3,644 guests
Please welcome our newest community members: