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

Community site session details

Session Id :
Power Automate
Unanswered

Approval Flow

(0) ShareShare
ReportReport
Posted on by 143

Hi, I have the below flow,

Screenshot 2024-02-20 162632.png

I have an Excel, where the main column consisting with 

username | user email | supervisor name | supervisor email

user 1        ........              super A                 ...........

user 1        ........              super B                 ..........

user 1        ........              super C                 ..........

user 2        ........             super B                  .........

user 2       ........             super D                  ........

   .               .                     .                            .

  .                .                     .                            .

Now, how my flow working is, the approval is sent to all supervisors and all of them need to respond in order for the flow to continue.

 But, my goal is to have the flow to work like this, where only one supervisor need to respond, and the flow will continue.

How to set this for each user? Can someone show me how to modify the flow?

Categories:
I have the same question (0)
  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at
    Re: Approval Flow

    Hi @mel_ 

     

    If you are looking for stopping an approval when any of the approvers approve/reject and flow continue from there then refer the below sample flow:

     

    After "List rows present in a table", add "Select" action to create a list or array of supervisor email. Pass the value object from List rows action in "From" parameter:

    ManishSolanki_1-1708419276421.png

    Click "Switch Map to text mode":

    ManishSolanki_2-1708419333220.png

    Add and expression to add the supervisor email in the array. Expression needs to be added in the expression box as shown below:

     

    ManishSolanki_3-1708419444448.png

    item()?['supervisor email']

    Pls replace the column name with actual one in the above expression.

     

    Next, add compose action to create colon separated email addresses of all supervisors. You need to write an expression in the value parameter:

    ManishSolanki_4-1708419601548.png
    join(body('Select'),';')

     

    Finally, add approval action and set the 'Approval type' parameter as 'Approve/Reject - First to respond'. Pass the output of compose action in the 'Assigned to' parameter:

    ManishSolanki_5-1708419753006.png

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

     

     

  • mel_ Profile Picture
    143 on at
    Re: Approval Flow

    hi @ManishSolanki , thanks for the reply. May i know, is this flow, especially for the join expression, is it apply to each user? Meaning that when this particular user submit their ticket, the flow will work within their particular supervisors?

  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at
    Re: Approval Flow

    Hi @mel_ 

     

    For that, you need to enter filter query in "List rows present in table" action to get all the supervisors of a user. I mean you need to filter the records in excel sheet based on a user and then add the actions which I have mentioned in my previous reply. 

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at
    Re: Approval Flow

    Hi @mel_ ,

    I did a test for your reference.

    My Table:

    vyetonggumsft_4-1708422641782.png

    Add a condition in the 'List rows present in a table' control to filter out the information of the specific user entered, and then use the 'select' control to obtain the user's specific supervisor email. This ensures that a specific user submits a work order and the flow works within a specific supervisor.

    My Flow:

    vyetonggumsft_1-1708422268256.png

    vyetonggumsft_2-1708422469931.png

     

     

    username eq '@{triggerBody()['text']}'
    @items('Apply_to_each')?['approverResponse']

     

     

    Best Regards,

    Sunshine Gu

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard