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 : /dsyXY8G3R+AblSijMOHKA
Power Automate - Building Flows
Answered

Apply to Each object/string in a union (Compose)

Like (0) ShareShare
ReportReport
Posted on 9 Apr 2021 16:20:32 by 82

I have got unique rows from column 'InquiryID' by a union expression in Compose step.

 

I now want to loop through each of these unique ID's by using the output of this compose, but I have not found the correct way to. 

 

This is what my steps look like, when ran they work correct and give the correct output - 

 

dwalker97_0-1617985105188.png

 

I would like to reference each individual ID in a for-each loop as I will be cross-referencing these with another table. How do i reference each item of this union?

 

 

 

  • dwalker97 Profile Picture
    82 on 14 Apr 2021 at 11:02:57
    Re: Apply to Each object/string in a union (Compose)

    Perfect, that worked.

     

    Thanks!

  • Verified answer
    Paulie78 Profile Picture
    8,416 Moderator on 09 Apr 2021 at 16:47:01
    Re: Apply to Each object/string in a union (Compose)

    create a for each loop with your union as the source and you can reference it within the loop using:

    item()['InquiryID']

    As you only have one property in your array, you can make it even easier by putting the select action into text mode, and the put the InquiryID into the map. Then you will have a plain array of InquiryIDs, then perform your union again.

     

    If you do that, in your apply/each, it will simply be item()

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete