cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MrDoug
New Member

Sharepoint List -> Azure DevOps Work item - When an item is created or modified - the modify creates a new work item every time

Hello all,

 

I have build a new flow where, when a Sharepoint List Item is created it creates an Azure DevOps work item.  That works great - but when we test modifying the original Sharepoint List Item it creates a NEW Azure DevOps work item.  Is there a way to link the two so that changes to the original Sharepoint List Item are made to the original Azure Devops work it

1 REPLY 1
chrissahagun
Resolver II
Resolver II

First compare Modified and Created fields from triggerBody.  If Modified = Created or Modified is blank (I'm not sure about SharePoint Lists particular field behavior), then it's a create event.  If Modified is later than Created, then it's definitely an update event.  So insert a condition step to differentiate the two.

 

Alternatively, if you are only interested to run your flow when an item is created, then use the trigger "When an Item is Created" instead.

 

Also, you might want to know that there is another trigger called "When an Item or file is modified"

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,962)