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 / Populating a table fro...
Power Apps
Unanswered

Populating a table from a deep nested collection

(0) ShareShare
ReportReport
Posted on by 17

Hello!

 

I'm hoping someone can point me in the right direction, I have a custom connector setup to collect data to populate in my canvas app. The response from the connector contains 4 Levels of nested tables. I have a table setup in my app that I would like to display all records from the Level 4 of my collection in, including all columns.

 

Potentially down the line I would like to filter based on values in Level 3 but that isnt a priority at the moment.

TomPhillips_0-1603584547998.png

 

I've been struggling with the formula for this, from research I believe I need to perform multiple ForAll()s to get to the table I need then finally perform a Collect().

 

Current status of the formula, it errors in the Collect function because 'behavior function is a non-behavior property'

 

ForAll(TopLevel, ForAll(Level1.Level2, ForAll(Level3, ForAll(Level4, Collect(Level4, {Field1:Field1, Field2:Field2,Field3:Field3})))))

 

This is the only way I have been able to get to the 4th level of the collection, I'm not sure this is even the best method or if it will actually work. Is there a better way to get to this level? 

 

 

Categories:
  • Vijay Tailor Profile Picture
    2,961 on at

    Hi @TomPhillips ,

    You can use like below.

    ForAll(TestAkshay,If(Complexity.Value<>Blank(),Collect(CollectValue,{ComplecityValue:Complexity.Value})));

    Thanks,
    Vijay

    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."-Vijay

     

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @TomPhillips 

     

    Probably you could use . (dot) notation.

     

    I have created a nested Collection like this:

    ClearCollect(myDemoCollection,
    {Level:1,Details:{Level:2,Details:{Level:3,Name:"Lutz"}}},
    {Level:1,Details:{Level:2,Details:{Level:3,Name:"Peter"}}})

     

    In then added a DataTable and set Items Property to:

     

    Filter(myDemoCollection,Details.Details.Name ="Lutz")

     

    I then added a field to the DataTable and set the Text Property to:

    ThisItem.Details.Details.Name

     

    ==> DataTable showed me the correct details.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it 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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard