web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to manage a reject...
Power Automate
Answered

How to manage a rejection in approval flow

(0) ShareShare
ReportReport
Posted on by 61

Hi Everyone !

 

I use flow in my company in France and i create approval flow alone.

I would like to do this :

 

- Approval 1 -> approve OR reject

- If Approval reject -> restart of flow at the "start an approval 1" 

 

I explain that i would like to restart flow to the "Start an approval" of the approval wich was reject the document

 

I dont' know if it's understanding ...

 

Maybe @sergeluca can you help me (I read your blog https://sergeluca.wordpress.com and it was very interesting but i didn't understand the screenshot) 

 

Thanks for any help !

 

 

Categories:
I have the same question (0)
  • sergeluca Profile Picture
    500 on at

    Bonjour Camille,

     

    comme le forum est US je vais écrire ma réponse en anglais.

    This is probably what you need :

     

    Now you mention a specific post on my blog, which blog post exactly ? the one explaining state machines ?

     

    Kind regards

     

    Serge Luca

     

     

     

  • CamilleB Profile Picture
    61 on at

    Hi @sergeluca

     

    Thanks for your reply !

     

    I don't understand the firt action in your screenshot. How to make it ? 

    I use the action "When a new item is created in sharepoint"  and "start an approval" but I cannot choose an action like you (with the "{x}". 

    Can you telle me how you can do this ?

     

    I try to do something with my flow and the documentation of Microssoft isn't very interesting. So I discover your Blog on google and I read the article about "Elegant pattern for implementings state machines with Microsoft Flow" and after the article "Microsoft Flow & sharepoint : how to escalate approvals".

    I will try to do what you said about duration !

     

    Best regards,

    Camille

     

  • CamilleB Profile Picture
    61 on at

    I find the action "Variable" ! 

    But can you explain me the fonction of this action ?

     

    I try to do your flow step by step but i didn't recieve the approval mail.

     

    Camille

  • jcollins Profile Picture
    149 on at

    I originally thought that by doing a DoUntil in the Reject side that said wait until the Modified by equals the Created by person then Start Flow (using the flow managment action) to start the same flow again. However, that failed, i guess because the flow only starts on When Item is Created (not modified).   We can use the When Item is Created or Modified trigger because it gets modified throughout the process after each approval (i have 5) it updates the status column. So.... I am stuck here with you wondering how to restart a flow after the user has made their corrections to the form after it has been Rejected. 

     

    What I am trying now is to use the Create Item action in the DoUntil that wait for the Modifed by to equal the Created by person. It will simply just create a new item with all the new data and that should trigger the flow again. However, I will now have 2 forms submitted, the rejected one and the corrected one... maybe not so bad but we shall see if that works now... 

     If anyone has updates, please post! 

     

    UPDATE: Happy to say that worked!!  

     

    Simply make the DoUntil look for the Modifed by equals the Created by and then wait some time before Get Item checks to see if that has been changed.  If not, it will continue on waiting and checking until it does. Once it does, it will create a new item with all the contents from the previous edit. Creating this new item will kick off the original flow. 

     

    Let me know how it works for you all! 

     

     

  • CamilleB Profile Picture
    61 on at

    Hi @jcollins !

     

    Thanks for you reply !

     

    Can you share a screeenshot about your flow which works ?

     

    I use DoUntil but I don't know what value i need to insert because I understand i need to use DoUntil for the first action "Create New Item".

     

    Best Regards,

    Camille

  • CamilleB Profile Picture
    61 on at

    Re !

     

    I just tried the Flow (screenshot) but if the Second Approval reject the document, nothing happened (expect the mail)

     

  • CamilleB Profile Picture
    61 on at

    Sorry for the link, you cannot open links because it's with the Onedrive of my company.

    So you will find the true link :

     

    Screenshot of my flow

     

    Please let me know if it's doesn't works

     

    Thanks !

    Camille

  • jcollins Profile Picture
    149 on at

    I don't know why but we can't seem to upload images here....If I figure out how, I will do so.  Links you left don't work. 
    But I am using the DoUntil to look for when the item is modifed (Modified must equal the created by) then it will trigger creating a new item.  try this image

  • CamilleB Profile Picture
    61 on at

     

    Hi !

    Sorry but i have many difficulties with share law in my company.

    Maybe can you try to see my flow with this link ?

     

    https://drive.google.com/open?id=17bfSTfRZB5ezPhxFJK3bG0EzUgEIC032

     

    Thanks for you reply @jcollins i will test this now. But can you show me the complet flow ? 

     

    Camille

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @jcollins

     

    I have made a test on my side and please take a try with the following workaround:

    • Add a "When a file is created or modified (properties only)" trigger, specify Site Address and Library Name.
    • Add a Variables-> "Initialize variable" action, Name set to ApprovalStatus, Type set to String and Value set to Rejected.
    • Add a "Do Until" action, Within Condition box, left input box set to ApprovalStatus variable, right input box set to Approved, within middle drop down, choose is equal to.
    • Within "Do Until" action, add a "Start an approval" action. Then add a Condition, left input box set to Response dynamic content of "Start an approval" action, right input box set to Approve. Within middle drop down, choose is equal to.

             Within "If/yes" branch of Condition, add a "Set variable" action, Name choose ApprovalStatus, Value set to Approved. Then add a "Send an email" action.

     

            Within "If/no" branch of Condition, add a "Send an email 2" action.

     

    Image reference:27.JPG

     

    28.JPG

    The flow works successfully as below:29.JPG

     

     

    Best regards,

    Kris

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard