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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Everyone must approve ...
Power Automate
Answered

Everyone must approve Issue

(0) ShareShare
ReportReport
Posted on by 52

Hi Community

I am having an issue with the 'assigned to' section causing a 'for each' automatically when taking the email id from an approvers list in the form.

How can I avoid the 'for each' from populating, as it is updating the approval status based on individual approval rather than the whole team of approvers.

Allister1_0-1711484432147.png

 

Categories:
I have the same question (0)
  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Hi @Allister1 

     

    What are you passing to the 'Assigned To' column?

  • Allister1 Profile Picture
    52 on at

    Hi DJ,

    This my whole flow but sharepoint updates everytime anyone approves, instead of waiting for everyone to give approval and then updating

    Allister1_2-1711485966256.png

     

     

     

     

     

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    It might be because you are passing a multi person column to the 'Assigned to' field instead of a string of emails separated by ;

     

    I need to know what's inside this:

    DJ_Jamba_0-1711486912278.png


    Can you put that field in a compose right after the trigger in your flow and post that (change any sensitive data to dummy data)

  • Allister1 Profile Picture
    52 on at

    @DJ_Jamba That is correct, I am trying to pass multiple people emails using the approvers email.

    unfortunately this is causing the approval to become For Each automatically.

    Allister1_0-1711498871383.png

     

  • Allister1 Profile Picture
    52 on at

    I was also forced to put my condition into the 'for each' for the flow to not fail

    Allister1_1-1711499162621.png

     

  • Verified answer
    DJ_Jamba Profile Picture
    2,837 Moderator on at

    Hi @Allister1 

    Try the following:
    1. Right after the trigger in your flow, add a Select action and switch Map to text mode

    DJ_Jamba_0-1711558718265.png

     

    2. In the From field add Approvers (not Approver Email)

    DJ_Jamba_1-1711558882820.png

     

    3. In the Map field, enter the following expression:

    item()?['Email']

     

    DJ_Jamba_2-1711559077434.png

    This will give you an array of emails.


    4. To flatten the array into a string, use the Join function

    DJ_Jamba_3-1711559309518.png

     

    The From field needs to be the previous Select action

    The Join with field needs to be a semi-colon
    ;

     

    5. In the Assigned To field of the Start and wait for an approval action add the the Join function from the previous step

    DJ_Jamba_4-1711559631751.png

     

    This will not create an Apply to each loop because we are passing a string instead of an array.

     

    6. Test it

  • Allister1 Profile Picture
    52 on at

    Thanks @DJ_Jamba . I will give this a shot right now. 

    I am having another issue with 'the Update Item' section. Since my Approvers is a mandatory field, it is doing the 'foreach' with the Approvers Claims as well. Should I do the initialize for that as well ?

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Can we deal with this issue then create a separate post for the other issue as it will be easier for the community to find the solutions.
    I'll be online for a while if you want to @mention me

  • Allister1 Profile Picture
    52 on at

    Will do. Thank you. The approval feature is functioning. I accepted your post as the solution.

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Excellent! Glad it's working!

    d(-_-)b

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 248 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 207 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 101 Super User 2026 Season 1

Last 30 days Overall leaderboard