web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How do I retrieve Plan...
Power Apps
Unanswered

How do I retrieve Planner priority levels in Powerapps

(0) ShareShare
ReportReport
Posted on by

Hi all, 

 

I am using the Planner connector in Powerapps. I can create a task and add a priority level (with CreateTask), but now I'm looking for a way to retrieve this priority level and display it in my gallery. 

Can anyone help please?

 

Thanks!

Categories:
I have the same question (0)
  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @fleur2 

     

    You might need to use this reference table to convert priority values.

     

    cha_cha_0-1678972694458.png

    Full documentation here: https://learn.microsoft.com/en-us/graph/api/resources/plannertask?view=graph-rest-1.0

     

    Priority returned by Planner is usually in integer format. You just have to convert it manually. For example, you can a Label control and its Text value, you can add the following code:

     

    Switch(
     ThisItem.Priority,
     0, "Urgent",
     1, "Urgent",
     2, "Important",
     3, "Important",
     4, "Important",
     5, "Medium",
     6, "Medium",
     7, "Medium",
     8, "Low",
     9, "Low",
     10, "Low",
     "Unknown"
    )
    
  • FC-15010922-0 Profile Picture
    on at

    Hi @cha_cha , 

    Thanks for your reply. I used the switch function to add the priority, for which I used the following formula:

    Planner.CreateTaskV4(dropdown.selcted.id, dropdown2.selected.id, txtAddTitle.text, {priority: Switch(dropdown3.Selected.Value, 1, 0, 2, 3, 3, 5, 4, 8)}). In my gallery, I created a list with my tasks using the Planner.ListTasksV2 function. However, this does not include the priority levels, so I am wondering where to retrieve this priority level as set with the Planner.CreateTask function.

    Thanks in advance!

  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @fleur2 

     

    I just checked the documentation (https://learn.microsoft.com/en-us/connectors/planner/#gettaskdetails_response) for the power apps Planner connector and this might be something you'll have to check on your end. Currently, there are only two namespaces that have priority included in its response.

     

    (1) GetTaskV3

    Unfortunately, this namespace is not yet available for the PowerApp Planner connector

     

    (2) ListTasksV3

    This requires groupId but it says in the documentation that it returns a priority value. This is untested on my end as I don't have tasks under a group. 

     

     

  • TomVD_VDP Profile Picture
    19 on at

    Same problem here: there seems to be no way to retrieve the priority of an existing task at the moment. @cha_cha : the ListTaskV3 returns an array of GetTask_Response_V2 objects, which unfortunatelly does not contain a priority. Let me rephrase that: the raw output of ListTaskV3 does contain the priority, but there is no 'priority' property in the return object :-|.
    Anyone found a solution (or workaround) to get the priority of an existing planner task?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard
Liquid error: parsing "/forums/thread/details/?threadid=af10cd24-6316-425b-b863-f91270232cd3)[3](https://au-prod.asyncgw.teams.microsoft.com/v1/objects/0-sau-d1-fae3c8aafddb51b93b1d52608dda51d7/views/original" - Too many )'s.