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 retrieve the da...
Power Apps
Unanswered

How to retrieve the data from Planner.GetPlanDetails

(0) ShareShare
ReportReport
Posted on by 173
Hi all,
 
I have made a calendar listing Planner tasks, and I would also like to give the users possibility to create new tasks. When creating new tasks, I want to get all categories from a plan that is chosen by a user. I then want to display the answer in a dropdown the user could chose categories from, when creating the new task.

I have tried this solution, but it don't work.
In OnChange from the Plan dropdown:
// Create collection of the chosen plans categories
ClearCollect(
    colPlanCategories;
        Planner.GetPlanDetails(
        LookUp(
            colPlannerBucketlist;
            PlanName = drpAddItemPlan.Selected.Value
        ).PlanID
    ).categoryDescriptions
)
 
And then I put the colPlanCategories as Items in the Categories dropdown.

But the data in colPlanCategories has no column names, so I can't wrap my head around how I should produce the category list.
The data in colPlanCategories, is just one record which looks like this when i look at them in PowerApps Studio.

 
All ideas on how to split this up to a table with two columns, category and categoryName is appreciated.
 
Categories:
I have the same question (0)
  • SaiRT14 Profile Picture
    1,990 Super User 2025 Season 1 on at
     
    The issue you're encountering is because the categoryDescriptions property from the Planner API likely returns data in a nested JSON structure, and Power Apps does not automatically convert this into a usable table with distinct columns.
    {
        "category1": "Marketing",
        "category2": "Development",
        "category3": "Testing"
    }
     
    Use the ForAll function combined with Ungroup or Collect to transform the object into a table format.
  • ronaldwalcott Profile Picture
    3,862 Moderator on at
    You would first need to parse the JSON to a collection. Look at this documentation to get an understanding of how this is performed ParseJSON function - Power Platform | Microsoft Learn
  • LennartWalldén Profile Picture
    173 on at
    Thanks for the answers but I can't get any of them to work, can anyone give me a code example?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard