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 Platform Community / Forums / Power Apps / Forall on nested colle...
Power Apps
Unanswered

Forall on nested collection

(0) ShareShare
ReportReport
Posted on by 42

Using a forall() , I want to store all the MeetingA values  inside a new collection. I tried the following but it doesn't work. How could I get all the meetingA values ?

 

ClearCollect(NewOrder, ForAll(CollectTest, {newTime:Meeting.Value.MeetingA}))

 

 

 

ClearCollect(
 CollectTest,
 {
 Id: 1,
 Meeting: [
 {
 MeetingA: "MeetingA1",
 B: "MeetingB1"
 },
 {
 MeetingA: "MeetingA2",
 B: "MeetingB2"
 }
 ]
 },
 {
 Id: 2,
 Meeting: [
 {
 MeetingA: "MeetingC",
 B: "MeetingD"
 }
 ]
 },
 {
 Id: 3,
 Meeting: [
 {
 MeetingA: "MeetingE",
 B: "MeetingF"
 }
 ]
 }
)

 

 

Thanks !

Categories:
  • mdevaney Profile Picture
    29,993 Moderator on at

    @Buddy2019 

    There are two layers of tables in the collection you provided so a nested FORALL loop is necessary to get at the MeetingA values.

     

    Here's my code:

     

    ForAll(
     CollectTest,
     ForAll(Meeting.Value,
     Collect(colMeetingA,{newTime:Value.MeetingA})
     )
    );

     

    The resulting Collection is:

     

    "MeetingA1",
    "MeetingA2",
    "MeetingC",
    "MeetingE"

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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 Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard