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 / Nested objects in coll...
Power Apps
Answered

Nested objects in collection table

(0) ShareShare
ReportReport
Posted on by 19

Hello,

I hope you can help me.

As a result of "Planner.ListTasksV2(id).value" for all Planner plans of our groups, I have a collection with the userIds that are assigned to a task nested in "_assignments".  I want to have an own row for each task with one user. For example if one task has three assigned users, I want to get three rows with each title+userId. So I want to "unnest" it. But i don't now, how ich need to write it in PowerApps.

 

In the collections view, _assignments is shown as an object. I'd like to create a new collection with the tasks and a column for the userId so the task's title and userId together would be like a primary key.

 

I need to filter the tasks by each userId that is nested in _assignments.

 

In fact this approach is only a workaround, because the Graph query "GET all Planner tasks for user: https://graph.microsoft.com/v1.0/users/{id | userPrincipalName}/planner/tasks" doesn't work with another user than my own because of permission issues.

 

I'm sorry, if I'm too confusing.

2021-04-20 11_34_29-MSGraphDemoApp - Saved (Unpublished) - Power Apps.png
2021-04-20 11_33_39-MSGraphDemoApp - Saved (Unpublished) - Power Apps.png
Categories:
I have the same question (0)
  • Verified answer
    niaadami Profile Picture
    19 on at

    I found the solution: I have to use the Ungroup function. (I just started with PowerApps and didn't know about it)

    ClearCollect(AllTasksUngroupAssign, Ungroup( AllTasksTable, "_assignments" ) )

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 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard