Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Problem with Flow approval/denial

(0) ShareShare
ReportReport
Posted on by 10

Hey all, I'm  using Flow and Sharepoint to approve or deny overtime for employees. I used Form to create a form that is pasted to their browser on their desktop or phone. They fill it out to request overtime and send it. Then we get an email notification to approve it or deny it. If we approve it, then it goes to OUR supervisor for another approval. If it gets approved the original overtime requester gets an email saying it has been approved and we get an email notification as well. The flow history lists it as "succeeded." The problem we are having is when we get the initial overtime request and we deny it. The original requester gets notification that is has been denied and we do too, but the flow continues to run. In flow history it will say "running" for pretty much forever. How do we get it to stop and become a "succeeded" flow. It seems like it is searching for that second approval or denial, when in reality it should just stop there. I have tried adding in a "stop flow" action but it isn't working. If everyone approves it, there doesnt seem to be any issues and its listed in Flow history as succeeded. HELP! Thanks! - Craig

  • Dorul Profile Picture
    340 on at
    Re: Problem with Flow approval/denial
    Glad to help! just keep in mind that we are users just like you and might not know the solution to all your problems. Just to know so you wont get dissapointed 🙂
    Also for different problems you'd better ask in different posts, if you get the solution to your problem others can identify it faster, after/if you mark the solution.
    Have a nice weekend!
  • Camma5150 Profile Picture
    10 on at
    Re: Problem with Flow approval/denial

    Thank you for all your help, I will implement these changes and hopefully it all works. I may be calling upon you some more to walk me through this. I am pretty new to using these applications, but they open up a lot of doors  in many areas of my job functions.  

  • Dorul Profile Picture
    340 on at
    Re: Problem with Flow approval/denial

    As often as you want, so you can track what happens in flow without open the flow run - just by looking in your sharepoint list.

    So for example in my case, after every approval, in the Yes branch I have an "Update item", also in the No branch, another "Update item" - so I`ll know who didnt answer yet, who approved or rejected and when.

     

    Capture.JPG

  • Camma5150 Profile Picture
    10 on at
    Re: Problem with Flow approval/denial

    How often do I have to put the "Update in Sharepoint action" 

  • Dorul Profile Picture
    340 on at
    Re: Problem with Flow approval/denial

    As I see, it should send mail to the requestor because in your No branch you already have a "send an email".

     

  • Camma5150 Profile Picture
    10 on at
    Re: Problem with Flow approval/denial

    Ok I will give it a try. In the "No" branch of my condition do I have to put send an email to original requestor? or does it do that automatically? 

  • Dorul Profile Picture
    340 on at
    Re: Problem with Flow approval/denial
    Well I was right. Your "Start an approval 2" starts in the middle, and it should start in the left, in the Yes branch of your condition.
    Starting with "Start an approval 2", move everything, all the steps, under your Update item. I don't know how to be clearer than this 🙂
  • Camma5150 Profile Picture
    10 on at
    Re: Problem with Flow approval/denial

    I've posted some pics of my Flow. I've blacked out the names. I'd like the flow to end successfully if I initially reject it, with no further emails to my supervisor.  An email would  be sent to the original requestor saying it was denied, and my reasons why in any comments I decide to leave. If I approve it, it goes to my Supervisor for approval. If he approves it, then an email goes to the original requestor and myself saying its approved and the flow should end successfully. If he denies it, an email should be sent to the original requestor and myself saying it was denied and the flow should end successfully. Any help is appreciated. Thanks!FLOW #1.jpgFLOW #2.jpgFLOW #3.jpgFLOW #4.jpgFLOW #5.jpgFLOW #6.jpgFLOW #7.jpgFLOW #8.jpg 

  • Dorul Profile Picture
    340 on at
    Re: Problem with Flow approval/denial

    Hi @Camma5150

    My guess is that your flow looks like this (and the second approval/the next steps are running no matter what the answer is)

    Capture.JPG

     

     

     

     

     

    And instead, it should look like this:

    Capture2.JPG

     

     

     

     

     

     

     

    Drag and drop your second approval to the "If yes" branch (or if you cant, recreate the steps in the "if yes" branch) If thats the case, please mark @v-yamao-msft`s post as the solution.

    Cheers

  • Camma5150 Profile Picture
    10 on at
    Re: Problem with Flow approval/denial

    Hello Mabel,

    My flow works but what happens is even if I deny a request for overtime, it still goes to my supervisor for approval/denial. Here's how it works now: When a request for overtime comes to me, I approve it or deny it. If I approve, it emails my supervisor to review the request, and he must approve or deny it. If he approves it, then the original requestor gets an email, along with myself saying it has been approved. This completes the flow successfully. If he denies it, the original requestor, along with myself, gets an email saying it has been denied. This completes  the flow sucessfully. If the overtime request comes to me, and I deny it, I want it to send an email to the original requestor along with my comments of why it was denied. Then the flow should end sucessfully. I cant get it to do this. Instead, if I deny it the overtime request, it still goes to my supervisor for approval or denial. He sees that I denied it and he denies it too, but its an annoying extra step (and email) that he really doesnt want or need to be getting. Please advise. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow