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

Start and Wait for Approval Flow triggering twice

Start and Wait for Approval Flow triggering twice

we have a start and wait for approval workflow that calls for reminders upon status changes. For some reason after receiving the initial from Flow, the process works but after you respond to the initial flow email with Review, a second Flow email triggers at the same time as the second reminder. We are not changing the status and only want one Flow email to be sent until the item is Approved. Any assistance is greatly appreciated.

 

It is only occuring at Condition 7 and the Get File Properties 6 in the attached; files 13-151.png2.png3.png4.png5.png6.png7.png8.png9.png10.png11.png12.png13.png14.png15.png

 

 

4 REPLIES 4
Super User
Super User

Re: Start and Wait for Approval Flow triggering twice

The problem is that since you are using the Create and modified file trigger your Flow is being triggered when you update the properties of the file.  If you want to use that trigger you'll need to put some logic in at the beginning of the Flow to check whether an approval is already pending. if it is just terminate that run. I haven't seen a way to deactivate the trigger for a time while the flow is running or make an update without triggering the modified trigger.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Super User
Super User

Re: Start and Wait for Approval Flow triggering twice

Hi @sjacovetti 

 

Your flow is re-triggering  because you are updating the same item again in Flow after the approval response

 

Check this post on how to modify item and avoid re-triggering

 

https://powerusers.microsoft.com/t5/Using-Flows/Sharepoint-Post-Request-ValidateUpdateListItem/m-p/3...

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

sjacovetti
Level: Power Up

Re: Start and Wait for Approval Flow triggering twice

Where exactly are you suggesting to update and pardon the ignorance, what would the syntax be in the uri?

Community Support Team
Community Support Team

Re: Start and Wait for Approval Flow triggering twice

Hi @sjacovetti ,

 

The issue is caused by action Update file properties 2 and the trigger When a file is created or modified (properties only).

 

The trigger means that whenever a change made to the file properties, the flow will be triggered, while action Update file properties will update the file properties with specified value.

 

You may need to add a condition directly after the trigger to check if the status is equal to Review. If yes, do nothing, if no, do the following actions.

 

Please take a try with it on your side.

 

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.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Users Online
Currently online: 212 members 4,482 guests
Please welcome our newest community members: