cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
adityabajaj
Level: Power Up

Update existing Azure DevOps work item using Microsoft Flow when someone responds to an email

I am able to create a work item using Microsoft Flow in Azure DevOps although I have questions on that as well. But first:

- How do I update an existing work item if someone replies to the email that they previously sent to create the work item? I dont know what is the best way to find whether an item already exists but the logic I have on mind is checking whether the subject line contains "RE:" and then based on that either create a new work item or update existing. With updating existing, I am having issues in finding the existing work item because it asks me ID but all I have is subject line to look up the ID and use that ID.

 

Also, for the email notifications sent from DevOps, how do I modify the "from" email so that it always gets sent to the email that I am using to trigger Microsoft Flow?

 

If there is a better option to create/update work items using emails, I am open to that as well.

 

Thanks,

Aditya

3 REPLIES 3
Community Support Team
Community Support Team

Re: Update existing Azure DevOps work item using Microsoft Flow when someone responds to an email

HI @adityabajaj ,

 

Do you want to check if a record already exists in Azure DevOps to either update an existing work item or create a new one?

 

I don’t have Azure DevOps to test this issue, so I have created a flow based on SharePoint list for your reference.

 

In the following scenario, I am going to check if the incoming email’s subject exists in the list, if yes, update the Date column with email received time, if no, create a new one.

 

In the flow, I initialized an Array variable named as SubjectTest.

 

Under action Get items, add Apply to each, then the action Append to array variable within the loop. Set its value as dynamic content Title.

 

Add a Condition to check if the variable SubjectTest contains Subject.

 

Under if yes branch, add another Condition 2 to check if the email subject is equal to Title. If yes, update item.

 

Under if no branch, add action Create item to create a new item.

 

Images for your reference.

1.PNG2.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Community Support Team
Community Support Team

Re: Update existing Azure DevOps work item using Microsoft Flow when someone responds to an email

Hi @adityabajaj ,

 

Have you made a test on your side?

 

Could it be a reference for you?

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Campus
Level: Power Up

Re: Update existing Azure DevOps work item using Microsoft Flow when someone responds to an email

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,955)