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 Automate
Answered

Approver

(0) ShareShare
ReportReport
Posted on by

Hello,

I need to set such a condition that after starting and approving,

I will set the condition.

If there are 5 people for approval, 3 of them need to agree, and the approval will be successful.

Categories:
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @qiuyun ,

     

    I recommend you use 'Filter array' to get all 'Approve' responses and use length() to calculate items of 'Filter array' to check if three people has approved.

     

    Here is my test for your reference:

    vmengmlimsft_0-1707115223347.png

     

     

    Best regards,

    Rimmon

  • qiuyun Profile Picture
    on at

    I really appreciate your answer, it's very useful to me. Also, if there are other conditions, like three out of five approvers agree, or four out of six approvers agree, should I set parallel conditions?

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

    Hi @qiuyun ,

     

    Do you mean that number of people has approved is greater than or equal to 60%?

    I recommend you can also modify expression I provided before like this:

    div(float(concat(length(body('Filter_array_2')),'.0')),length(outputs('Start_and_wait_for_an_approval')?['body/responses']))

    vmengmlimsft_0-1707119120447.png

     

     

     

    Best regards,

    Rimmon

     

  • qiuyun Profile Picture
    on at

    This is amazing, thank you

  • qiuyun Profile Picture
    on at

    Hi Rimmon

    I followed your instructions, but the result was still unsuccessful. Please find attached the screenshot and my expression for your reference.

    div(float(concat(length(body('筛选数组')),'.0')),length(outputs('启动并等待审批_copy')?['body/responses']))

    qiuyun_0-1707199998858.png

    qiuyun_1-1707200024662.png

     

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @qiuyun ,

     

    There is no obvious error about your current flow. Does the flow fail to run successfully or does the condition always remain false even if 3 out of 5 people agree to the approval?

     

     

    Best regards,

    Rimmon

  • qiuyun Profile Picture
    on at

    Hi Rimmon

    I apologize for the confusion in my previous response. It seems like i want to create an approval process where, regardless of the number of approvers, the process can only proceed to the next step if at least 60% of them approve.

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @qiuyun ,

     

    The expression does this: number of people has approved / number of all people.

     

    I think this meets your requirement, or did I miss something? If we don't care about the total number of approvers, how do we get the value of 60%?

     

    Or you don’t need everyone’s approval, and you will proceed to the next step once the approval reaches 60%. But this is currently not possible because there are only the following four types of Approval.

    vmengmlimsft_0-1707205238995.png

    The only one that meets your needs is wait for all responses, which requires everyone to complete the approval before entering the next step, such as Condition.

     

    Best regards,

    Rimmon

     

  • qiuyun Profile Picture
    on at

    Yes, I understand your expression, but I don't know why in the test, there were 3 approvers and 2 clicked approve, but the condition displayed false.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard