cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MS_Sol
Microsoft
Microsoft

Flow Approval Requests that were Completed keep coming back

I recently changed one of my Flows to add an approval process.  I had some challenges getting it quite right, but eventually got it working.   Along the way, I had to cancel some reason after the approval requests had gone out as the run seemed to just hang.  I eventually determined it was some bad configuration in an email action after the approval process.

To clean up the approvals, I accepted all of them.  I determined the problem was the use of variables with concurrency.

However, each morning I find the approval requests back in my email and Flow site, but with the date and time from 2 days ago.  Note I am using concurrency in my apply to each.  Any idea why this is happening and how to stop it? I Have turned off all flows and it still keeps happening

 

Here is the flow, it queries a SQL DB and then runs through an apply to each for the return values:

 

MS_Sol_0-1599203617937.png

 

3 REPLIES 3
alrez
Community Support
Community Support

Hi,

 

First off, "Start and wait for an approval" Will wait until all the responses have been submitted before it will move onto the next step. So if you are sending an approval off to 5 different people it will wait until all 5 people have accepted or denied the approval request. Second, for each approval it will run through the "For each" statement and it will send an email for each person, so if there are 5 people doing the approvals it will send an email 5 different times. You should use a variable to set what you want to do within the "For each" Loop then outside the loop check the variable to see what it should do.

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ScottShearer
Super User
Super User

@MS_Sol 

I agree with @alrez in that there are some issues with your Flow.  Can you describe what you want to accomplish with a little more detail?  If so, then I will provide a sample Flow for you.  I guess what I am asking for is for you to describe the approval process that you would like to implement.

 

 

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

Scott

The flow:

 

1. Queries SQL for in scope items

2. does a apply to each on those items

3. Does several stored procs to getting more details, including who should receive the email with the details in #5

4. Sends the details for approval, sent to about 6 people, same people for every item

5. Sends an email with the details and approval comments

 

I had to enable concurrency on #2 or it only sent one approval out until it was completed.

Turning on concurrency made my variables not work, so changed to use proc output direct and some compose actions

Then some items didnt send out an approval.  Couldnt see in flow where the problem was.

Fixed leading space in the recipient list for step 5 and it "Seems" to be working, but had to stop testing until 10/1.  

Last 4 days I continue to receive approval requests even though no flows are running.

 

Thanks

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,170)