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", 5, 6, and 7 as "medium", and 8, 9, 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']
