cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CP153319
Helper V
Helper V

SharePoint List: Item Created Or Modified: Flow Runs Twice

Flow info:

 

When an existing list item is modified from "Open" to "Closed" it triggers a "Approval" flow using "When An Item Is Created Or Modified". There are a large number of people who can change the list from "Open" to "Closed". 

 

The problem occurs because the flow updates the SharePoint list with the approver's response, response date and comments. When the flow does this it triggers another flow because it is modifying the list a second time automatically and, for the second time, reads that it's "Closed" and sends out the approval. 

 

I found a work-around by setting the default text in the "Open/Closed" field to "Pending" and I run a condition to check for "Pending" (If the flow sees "Pending" it continues, if the flow sees "Approved" or "Rejected" it terminates). Only downside is that the flow has to run twice for every instance. 

 

Any ideas on how to prevent the second flow from running?

 

Any ideas for a workaround?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi @CP153319,

 

Thanks for feedback.

 

I am afraid that you have to use the workaround for this issue. I have seen a similar request on Flow Ideas Forum, please vote the idea at here:

https://powerusers.microsoft.com/t5/Flow-Ideas/Do-not-retrigger-the-flow/idi-p/70443

 

 

Best regards,

Mabel Mao

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.

View solution in original post

3 REPLIES 3
v-yamao-msft
Community Support
Community Support

Hi @CP153319,

 

Thanks for feedback.

 

I am afraid that you have to use the workaround for this issue. I have seen a similar request on Flow Ideas Forum, please vote the idea at here:

https://powerusers.microsoft.com/t5/Flow-Ideas/Do-not-retrigger-the-flow/idi-p/70443

 

 

Best regards,

Mabel Mao

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.

View solution in original post

GabrielStJohn
Administrator
Administrator

Hello, @CP153319!

 

If you have already posted your idea to the Flow Community Ideas Forum then you need to post the URL to your idea’s thread as a reply to this thread and then "Accept as Solution" on that reply so other users may vote for your Flow Idea and identify the information easily.

 

Thank You!

 

-Gabriel
Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager



Thank you for the direction. 

 

I have not posted my idea and there is no solution to this problem yet. 

 

Thank You!

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (41,132)