Skip to main content

Notifications

Community site session details

Community site session details

Session Id : rcwsEQ2Xvvd0IRf94xHflx
Power Apps - Building Power Apps
Answered

Get Planner Task description and add to a collection

Like (0) ShareShare
ReportReport
Posted on 23 Jul 2021 13:31:46 by 24

I am trying to create a gallery of planner tasks that can be searched using specific sections of the text within the task description because the task is created using a power automate and is always in the same format. 

I believe I need to add a column to my collection of tasks to grab the description, but I can not make it work. 

Here is what I was trying: ClearCollect(cDesignImprovements, AddColumns(Filter(Planner.ListTasksV3("Plan ID","Group ID").value,bucketId="Bucket"),"TaskDescript",Planner.GetTaskDetailsV2(id)))

 

Any help would be appreciated!

  • Verified answer
    BCLS776 Profile Picture
    8,988 Super User 2025 Season 1 on 23 Jul 2021 at 17:04:13
    Re: Get Planner Task description and add to a collection

    Gotcha, how about a slightly different approach?:

    ForAll(Planner.ListTasksV3("PlanID", "TaskID").value,
     Collect(cDesignImprovements,
     { 
     TaskName: ThisRecord.title,
     TaskNotes: Planner.GetTaskDetailsV2(ThisRecord.id).description
     // Add other fields you want to collect here
     }
     )
    )

    You can populate the collection with additional terms in the Collect() function with the data you need for your app.

  • jjamisn Profile Picture
    24 on 23 Jul 2021 at 16:10:06
    Re: Get Planner Task description and add to a collection

    I may be using the wrong terminology in what I am asking for. That did give me the title of the task. but I am really looking for the Notes portion on the actual Planner task. (in the yellow box in the picture)

    Planner Task Simplified.png

    I know within powerapps I can use the Planner.GetTaskDetailsV2(taskID).description and return this on my gallery. But I need that notes section in my collection so I can get some of the text out of it and search using what I take out. 

  • BCLS776 Profile Picture
    8,988 Super User 2025 Season 1 on 23 Jul 2021 at 15:51:31
    Re: Get Planner Task description and add to a collection

    I can see names of individual tasks at this level of query:

     

    Planner.ListTasksV3(PlanID, GroupID).value.title

     

    Try this code:

    ClearCollect(cDesignImprovements, 
     AddColumns(
     Planner.ListTasksV3("PlanID", "TaskID").value,
     "TaskDescript",
     title
     )
    )

    Make sure that code is collecting the task description you want, and then add back your Filter.

  • jjamisn Profile Picture
    24 on 23 Jul 2021 at 15:00:37
    Re: Get Planner Task description and add to a collection

    I had hardcoded the group and plan id into the function. I removed them from my initial post to look more general. The part I really need help with is adding the task description to my cDesignImprovements collection. 

  • BCLS776 Profile Picture
    8,988 Super User 2025 Season 1 on 23 Jul 2021 at 14:38:17
    Re: Get Planner Task description and add to a collection

    To use the connector properly, you'll need to specify the actual ID for Plan ID and Group ID that you want to query.

     

    Try the the Planner.ListMyPlansV2().value query to start, which gives you back a table of plan titles and IDs. From there you can filter and access the specific tasks in a plan using the plan's ID.

     

    To get Group ID, query using the Office365Groups.ListOwnedGroups_V3 connector. You can make some functionality to choose the group, or hardcode in the ID if that's easier for you.

     

    Once you have those IDs, you can plug them into your ClearCollect and get further to your results.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,011 Most Valuable Professional

Leaderboard
Loading started