Power Automate Exchange

Please login or click SIGN UP FOR FREE to create your FlowUG account to join this user group.
 View Only
  • 1.  Stop Flow if Rejected at Certain Stage not working

    Bronze Contributor
    Posted Feb 09, 2023 09:27 AM

    Hello,

    See below flow that is working as expected. But when we add to terminate the flow when rejected at certain stage, this seems not working

    Prem4253_0-1675934614440.pngPrem4253_1-1675934685775.png

     

    See below on how my flow works:

    1. Users Submits the request and approval email is sent to Functional Manager
    2. If Functional Manager approves, goes to Finance Manager
    3. When Finance Manager approves, it checks Condition 2. If it's equal to true, it goes for Director's approval else it goes to HR approval

    Yes Condition is working as expected. But for No Condition I'm not able to figure out the exact cause

     

    If Functional Manager is rejecting at level 1 - the flow stops (OK)

    If Functional Manager approves and when it goes to Finance Manager, and at this stage if it's rejected, the flow still send emails for next approvers (seems at this stage the flow did not got terminated)

     

    Could someone please advise - if at certain stage the request is Rejected and flow should get stopped.



    ------------------------------
    Prem Guru
    ------------------------------


  • 2.  RE: Stop Flow if Rejected at Certain Stage not working

    Posted Feb 10, 2023 12:58 AM

    Hi there

    It's a bit hard to read your flow image, however condition 2 has what appears to be a SharePoint field and condition is equal to false.

    It does not seem to reference the Finance approvers response as it does in the first condition, and will bypass it which is why your approvals are still triggering.

    If you use the Finance outcome field in condition 2 (like your first condition), the Finance approvers response will then be triggered correctly.

    Hope that helps!

    Cheers

    Damien



    ------------------------------
    Damien Rosario
    Knowledge and Training Coordinator
    ------------------------------



  • 3.  RE: Stop Flow if Rejected at Certain Stage not working

    Bronze Contributor
    Posted Feb 10, 2023 02:28 AM

    My Bad! See attached of flow.

    Basically if we do not add the No condition, the flow works as expected

    When the flow is rejected by Functional or Finance Manager, the flows stops. But when the approval is gone to Director, and if the Director rejects, the flow still runs and sends email to HR

    There are 4 conditions to my flow - i.e. 1, 2, 3 and 4.

    If Condition 4 is false - flow triggers and send email to Functional, Finance and HR (working as expected)

    If Condition 1, 2 or 3 is true - flow triggers and sends email to Functional, Finance, Director and HR (working as expected)

    So when an email to sent to Director, and if the Director rejects, the flow should get terminate



    ------------------------------
    Prem Guru
    ------------------------------



  • 4.  RE: Stop Flow if Rejected at Certain Stage not working

    Top Contributor
    Posted Feb 10, 2023 06:32 AM

    So is it condition2 in the attached images that you are getting stuck on?



    ------------------------------
    Sam Duval
    Data Quality Analyst
    Element Financial
    Indianapolis IN
    ------------------------------



  • 5.  RE: Stop Flow if Rejected at Certain Stage not working

    Bronze Contributor
    Posted Feb 10, 2023 07:28 AM

    Yes! My Condition 2 is a toggle button (In PowerApps form)

    If Toggle is False - Director's approval level is skipped and goes for HR approval (which is working as expected)

    And if Toggle is Yes - Approval goes to all 4 levels. In this stage when Director rejects, the flow still runs and sends email to HR for approval

    So Yes, it is Condition 2 I'm stucked.



    ------------------------------
    Prem Guru
    ------------------------------



  • 6.  RE: Stop Flow if Rejected at Certain Stage not working

    Posted Feb 10, 2023 08:37 AM

    Maybe I'm missing something but don't you need a condition after the director approval action to see what the response was and terminate if they rejected it? 



    ------------------------------
    Kurt Henderson
    President
    ------------------------------



  • 7.  RE: Stop Flow if Rejected at Certain Stage not working

    Bronze Contributor
    Posted Feb 10, 2023 09:08 AM

    Yes, I believe we should have a Condition after Director.

    But I'm still not able to figure out, how?



    ------------------------------
    Prem Guru
    ------------------------------



  • 8.  RE: Stop Flow if Rejected at Certain Stage not working

    Posted Feb 10, 2023 09:52 AM

    From what I understand of what you want to do, you need to rework the bottom part of your flow. I would duplicate the "No" actions after condition 2 and add a condition after the approval request  of the director. Then in the the "Reject" branch, do the same actions where you send the email and terminate the flow. See if that works.



    ------------------------------
    Kurt Henderson
    President
    ------------------------------