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 / How to access nested t...
Power Apps
Answered

How to access nested table values

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I have a nested table as follows: 

added1.PNGadded2.PNG

 

What I'm trying to do is loop trough the table and get ACTIVITY values. How can I do that?

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Solved it by using temporary collections to "extract" the data.

  • Verified answer
    PaulD1 Profile Picture
    2,914 on at

    One of the annoyances of the Collection view is that it does not distinguish between a nested table and a nested record, so I can't see from your screen shot if dll is a table or a record.

     

    Assuming a record - the following should pull the dll associated with the first AddedActivity into a collection.

    Collect(First(AddedActivity).dll)

     

    If you want to return the Activity entry for the dll in the first AddedActivity row:

    First(AddedActivity).dll.Activity

     

    If dll is a table you would do (to get the first row from dll for the first AddActivity):

    Collect(First(First(AddedActivity).dll))

    First(First(AddedActivity).dll).Activity

     

    If you just want to combine all the dll stuff together (and ignore the parent AddedActivity level) I think this would work:

    ForAll(AddedActivity, Collect(colDll,AddedActivity.dll))

     

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Do you want to access the values within the dll column in your AddedActivity collection?

    Have you solved your problem?

     

    If you want to access the values within the dll column directly in your AddedActivity collection, please consider take a try with the following workaround:

    Add a button control within your app, set the OnSelect property to following:

    Clear(ActivityCollection);
    ForAll(
     AddedActivity,
     Collect(
     ActivityCollection,
     dll
     )
    )

    then within your app, you could use the ActivityCollection as data souce to access your Activity records.

    You could consider add a Gallery within your app, set the Items property to following:

    ActivityCollection

    then all Activity records would be displayed within the Gallery.

     

    Please take a try with above solution, then check if the issue is solved.

     

    If you have solved your problem, please go ahead to click "Accept as Solution" to identify this thread has been solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Awesome, thank you to both of you. I was using the dot in the wrong place. Thanks again!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard