Showing results for 
Search instead for 
Did you mean: 

When a new email arrives then Create Azure Dev Ops Work Item with email attachments



Here are steps to do this:




Add condition to check content type of the attachment : body('Get_file_content_using_path')?['body']



Add the attachment to the work item

'op': 'add',
'path': '/relations/-',
'value': {
'rel': 'AttachedFile',
'url': '@{outputs('
Send_an_HTTP_request_to_Azure_DevOps ')?['
body ']['
url ']}',



Still in this IF YES block, add new action to check of the email body contains image: 






OK, now, in IF NO of the first condition:


The body content when we submit the attachment to the Azure Devop should be:











I attached the flow for your reference.

If you have issue when importing it. Just click Save as new on the top of importing screen


Good luck with Power Platform


David Nguyen


@David_Nguyen  - 

When I emailed "" then the work item creates automatically.

If I replied to that email then again new work item is creating(It's a duplicate).

But my requirement is when I replied to that email then it should update it in the Work Item discussion or description. How do I achieve this?


Meet Our Blog Authors
  • Experienced Consultant with a demonstrated history of working in the information technology and services industry. Skilled in Office 365, Azure, SharePoint Online, PowerShell, Nintex, K2, SharePoint Designer workflow automation, PowerApps, Microsoft Flow, PowerShell, Active Directory, Operating Systems, Networking, and JavaScript. Strong consulting professional with a Bachelor of Engineering (B.E.) focused in Information Technology from Mumbai University.
  • Encodian Owner / Founder - Ex Microsoft Consulting Services - Architect / Developer - 20 years in SharePoint - PowerPlatform Fan
  • Cambridge UK Power Platform User Group Leader, Technical evangelist and speaker. Always says yes to coffee! #LetsGetCoffee
  • Passionate #Programmer #SharePoint #SPFx #Office365 #MSFlow | C-sharpCorner MVP | SharePoint StackOverflow, Github, PnP contributor
  • I am building business processes and applications that are easy for users' to stick to, so they can follow and understand them. In overall I transform processes to be more reliable and effortless. I am a proud co-organizer of SharePoint Saturday Warsaw and active community member, blogger and international speaker.