cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Event Firing when Flow updates a SharePoint list item

Add a feature that will allow flow to disable event firing when updating a SharePoint list item, so that the Flow doesn't get stuck in a loop. Currently if I create a flow with a SharePoint list trigger when item is created or modified and have the Flow update a field in the item the loop gets stuck in a loop. One workaround is to add logic to check if the field(s) still need to be updated and if not then don't update the item but even in that case the flow will be triggered twice. It just makes sense to have an option that will allow Flow to update an item without triggering an event that will cause the same Flow or another Flow to run against the item again.

Status: Declined

Hi all,

 

After thoroughly reviewing this idea, we have decided not to proceed with this idea for a couple of reasons.

  • SharePoint events are no longer event receiver based and are performed using webhooks or polling where applicable
  • Other Office 365 applications and internal systems like auditing may and will rely on such changes like updates to items, files and other entities in SharePoint

However, that said, we understand the crux of the issue which is to help avoid loops. We will work with the flow team to come up with a generic model/pattern that applies across data source/connections for similar scenarios.

 

Thanks all for your input and please submit/vote your ideas as we are actively monitoring the ideas forum.

 

Thanks,

Chaks

Comments
cblackl2000
Helper I

Hi @Gristy , thank you for your reply and I realize now I did not provide enough specifics.  I have one list with the class, status, and students and for which I need the count of students.  The students will enroll over time, so that count will change frequently.  I do have  flow that is triggered at new or modified, but I am unable to stop the endless loop with a boolean as there is not a way to know when the modification is "final".  However, I just yesterday, after writing, came across the SharePoint list/library actions of "When an item or a file is modified" and "Get changes for an item or a file (properties only)".  I believe these may be my solution - so that I can narrow down to the given instance of change as well as the changed item of the students.

 

This is working so far, although I am still working out quite how to get my Update item to work.  Bottom line, thank you and I think these newer actions will resolve the problem of the endless looping.