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 / Apply to Each object/s...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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?

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    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()

  • dwalker97 Profile Picture
    82 on at

    Perfect, that worked.

     

    Thanks!

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard