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 Automate / How do I define the Dy...
Power Automate
Unanswered

How do I define the Dynamic parameter for 'priority' in power automate flow

(0) ShareShare
ReportReport
Posted on by 7

Hi, I'm trying to get the data from Microsoft planner into a sharepoint site. As shown in the attached image, I'm unable to find the appropriate Dynamic parameter/code for 'priority value' attribute. Can someone please assist on which instruction/code I should enter so that priority data from the planner can be shown in Sharepoint.

Also with regards to the 'Assignee', if this field was left blank in Microsoft planner then this won't be shown in sharepoint site. How do I update the code where entries with or without 'Assignees' can be shown in sharepoint. Please refer to the attached images for details.

Flow 2.png
Flow1.png
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @edesilva,

     

    Planner returns Priority as a Int32 (number). The Graph API documentation has a reference for this:

    https://learn.microsoft.com/en-us/graph/api/resources/plannertask?view=graph-rest-beta#properties

     

    Currently, Planner interprets values 0 and 1 as "urgent", 2 and 3 and 4 as "important", 56, and 7 as "medium", and 89, and 10 as "low". Currently, Planner sets the value 1 for "urgent", 3 for "important", 5 for "medium", and 9 for "low"

     

    You can use an array and match the priority value to that via a Filter Array action. 

     

    Below is an example

     

    1. Add an Initialize Variable action

    [{"Priority": "Urgent", "Value": 0},
    {"Priority": "Urgent", "Value": 1},
    {"Priority": "Important", "Value": 2},
    {"Priority": "Important", "Value": 3},
    {"Priority": "Important", "Value": 4},
    {"Priority": "Medium", "Value": 5},
    {"Priority": "Medium", "Value": 6},
    {"Priority": "Medium", "Value": 7},
    {"Priority": "Low", "Value": 8},
    {"Priority": "Low", "Value": 9},
    {"Priority": "Low", "Value": 10}]

     

    2. Use a Filter Array and use the below where statement

    @equals(item()['Value'], triggerOutputs()?['body/priority'])

     

    3. In your create item you can use the below expression as a custom value

    first(body('Filter_Array'))['Priority']

     

    priorityarray_planner.png

     

  • CU17030358-0 Profile Picture
    7 on at

    Hi Expiscornovus,

     

    Thank you so much for your detailed feedback. I have updated the code in accordance to your instructions and ran the test, but it ended up with a failure where no data was shown in the Sharepoint site. Can you please review the below screenshots and let me know where this error is that would be great!

    New flow 3.png
    New Flow 1.png
    New flow 2.png
  • CU17030358-0 Profile Picture
    7 on at

    Here is another attachment that show a failure

    New flow 5.png
  • CU17030358-0 Profile Picture
    7 on at

    Hi, would you be able to find where the error is as I'm still unable to make this work.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard