cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AkshaySolanki
Helper I
Helper I

when a list item is modified trigger is looping th flow again and again

Hello,

I am creating a sharepoint list item when MS Form responses are submitted using a straight forward flow.

but I have a task in that, in the list we have a column named 'Status' which has three values : 'requested' as default when entry comes in and 'Completed' and ' Rejected' when a technician changes the value manually. now I need to record these manual changes when Status is changed to 'Completed' or 'Rejected' in the same sharepoint list with two new columns 'Reviewed By' and Reviewed date' with user's name and list modified time in it.

I tried using the flow again with "when a sharepoint list is modified" trigger and adding trigger rule with only triggering when the status is completed or rejected in it. 

@OR(equals(triggerBody()?['Status']?['Value'],'Completed'), equals(triggerBody()?['Status']?['value'],'Rejected')) 

And I am trying to update the sharepoint list again to record those changes in 'Last modified: display name' to 'Reviewed by' and 'Last modified: date' to 'Reviewed date' columns using the if statement in flow but because I am updating the list item again with the Status Completed/Rejected in it,  it is going on an endless loop here because that is the trigger condition of this flow.

AkshaySolanki_0-1634328972677.png

 

My basic requirement is to record date and name of the person who changed the status field in the same list. Can someone help me here please.

 

1 ACCEPTED SOLUTION

Accepted Solutions
RezaDorrani
Dual Super User II
Dual Super User II

Hi @AkshaySolanki 

 

Check https://youtu.be/oKN4_5o2NUA

Key is to set a flag value along with the updates.

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Thanks,
Reza Dorrani, MVP
YouTube
Twitter

View solution in original post

1 REPLY 1
RezaDorrani
Dual Super User II
Dual Super User II

Hi @AkshaySolanki 

 

Check https://youtu.be/oKN4_5o2NUA

Key is to set a flag value along with the updates.

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Thanks,
Reza Dorrani, MVP
YouTube
Twitter

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,149)