Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Nested Apply to each when joining multiple email addresses

(0) ShareShare
ReportReport
Posted on by 18

I have been following a Dynamic Approvers YouTube video but getting stuck when selecting and joining multiple approvers from a SharePoint list.  After using a filter query to select the correct department, my next step is to Select the Approval 1 user’s emails from a SharePoint list, Join them with a semicolon, then add them to an already initialized variable,

During the Select data operation, I specify Approver 1 from the Previous ‘Get Departments’ step, then I change Map to Text and Select Approver 1 Email, but it creates a second nested Apply to each.  Not sure what I’m doing wrong.

 

Apply to Each before adding Approver 1 Email

AllenLacy_0-1662591632823.png

 

Apply to Each after adding Approver 1 Email

AllenLacy_1-1662591632827.png

 

JSON output from previous step

 

AllenLacy_4-1662591900390.png

 

SharePoint List 

AllenLacy_3-1662591632841.png

 

  • Verified answer
    AllenLacy Profile Picture
    18 on at
    Re: Nested Apply to each when joining multiple email addresses

    The video I was referencing for this solution never ran into the nested Apply to Each scenario, but I was able to get around the issue by changing the Select an output from the previous step in the nested Apply to Each as the value of the parent, which allowed me to set the variable and ultimately was an accepted output for the Start and wait for approval step.

     

    @Sundeep_Malik No doubt I could use compose, but it presented some of the same difficulties as using a Variable when working with it.  Being new to Power Automate, I followed the recommendations of the guide I was using. 

     

    AllenLacy_0-1662645059533.png

     

    Refference

    Reza Dorrani

    Dynamic Approvers & log history with Power Automate Approvals - YouTube

     

  • Sundeep_Malik Profile Picture
    6,482 on at
    Re: Nested Apply to each when joining multiple email addresses

    Hey @AllenLacy 

    Aren't you getting the solution that you required. 

     

    But you have doubt why you are getting nested loops here. This is because I think you are using get items, so firstly it will penetrate each item in list and then there are multiple values in approver also, that's why there are nested loops. 

     

    Just I had a question, why are you using select here? you could have directly used compose here.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1