cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Two Approvers

Dear all,

 

i need you help.

 

I want to make a flow about leave requests. I already did a simple flow which needs only one approver and this works fine.

Now i want to upgrade this flow with two approvers.

 

  1. User makes a leave request. This is ok with a custom list.
  2. Approval must be approved by two persons. First from deparment's Manager & finally from HR.
    • What happens if one person approves and the other rejects?
    • How get each manager per department?
  3. An email or notification have to send to request's creator about his request (Approved or Rejected)
  4. Finally, when we have two approves, an email have to go to Accounting Manager.

 

I appreciate every hint you can give me

Thanks in advance!! Thanks for your time.

1 ACCEPTED SOLUTION

Accepted Solutions
DeepakS
Super User
Super User

Hi @Anonymous 

You can achieve this with the following steps:

  1. User Submit a Leave request
  2. Start the flow on item creation on leave request list

if you have a defined manager for each department

  1. Add a condition for each department and start the approval for the department manager
  2. Add another condition on department manager approval response 
    1. if approved start second approval process for HR manager approval
    2. if reject, send a rejection email to the user
  3. if HR approve, send an approval email to the user

If you want to send an approval email to the user manager

  1. you can use Get manager (V2) action to get user email
  2. Send approval process to the manager  
  3. Add another condition on manager approval response 
    1. if approved start second approval process for HR manager approval
    2. if reject, send a rejection email to the user
  4. if HR approve, send an approval email to the user

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

View solution in original post

4 REPLIES 4
DeepakS
Super User
Super User

Hi @Anonymous 

You can achieve this with the following steps:

  1. User Submit a Leave request
  2. Start the flow on item creation on leave request list

if you have a defined manager for each department

  1. Add a condition for each department and start the approval for the department manager
  2. Add another condition on department manager approval response 
    1. if approved start second approval process for HR manager approval
    2. if reject, send a rejection email to the user
  3. if HR approve, send an approval email to the user

If you want to send an approval email to the user manager

  1. you can use Get manager (V2) action to get user email
  2. Send approval process to the manager  
  3. Add another condition on manager approval response 
    1. if approved start second approval process for HR manager approval
    2. if reject, send a rejection email to the user
  4. if HR approve, send an approval email to the user

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

Anonymous
Not applicable

Hello @DeepakS and thank you for your answer.

To check if this will work, i need to define managers to each department. But i dont know how to do it.

Can you quide me please?

ScottShearer
Super User
Super User

@Anonymous 

You have asked what happens when one approver approves and the other rejects.  That depends entirely on how you Flow is constructed and how the approval is configured.  Th easiest way to approach this is to set a single approval action to use a Start and wait for an approval action and the All must approve option.  If either approver rejects then the approval outcome is reject.

If the department manager is also the requestors manager, the you can use the Office 365 Users Get Manager action to retrieve the information required to use them as an approver.  If not, then an easy way to approach this would be to have a separate list of departments and managers.  Then lookup the manager before assigning the approvers.

 

You'll likely want to assign the department manager to a compose action and reference the compose action when assigning approvers.

 

After the approval has completed, send an email to the items creator and Accounting if the Outcome is Approve and only to the creator is the Outcome is other than Approve - use a condition.

 

My suggestion for you is to give this a try and post a screen shot of your Flow along with any errors if you have a question.

 

 

 

 

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

Scott
Anonymous
Not applicable

I found how to add managers to users.

I use your advise and flow is working.

 

Thank you so much!

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.

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (2,448)