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 Automate / Planner Category Colours
Power Automate
Suggested Answer

Planner Category Colours

(0) ShareShare
ReportReport
Posted on by 27
Hi
 
I am wanting to utilise the category colours in the Create a Task action for planner. I have tried several different if statements in an expression to try get it to work but it isn't. The field looks like it wants a true/false statement but when you click it, the options are yes/no/custom content. 
 
I have a column in the SP list called Urgency. With values red, amber, green. Depending on this value I want automate to colour the task in a corresponding colour. So if the value is red, I want it to use the red category. I have tried the following code;
 
if(equals(item()?['triggerOutputs()']['body/Urgency/Value'], '0'), True, False) - in the output for the when an item is created trigger, the value under Urgency is showing 0. I assume this means red=0, amber=1 and green=2.
if(equals(item()?['triggerOutputs()']['body/Urgency/Value'], 'Red'), True, False)
if(equals(item()?['triggerOutputs()']['body/Urgency#Id'], '0'), 'Yes', 'No') - in the output for the trigger it shows Urgency section as Urgency#Id
if(equals(item()?['triggerOutputs()']['body/Urgency#Id'], 'Red'), 'Yes', 'No')
 
I just can't get it to work. Can anyone help please?
 
 
Screenshot
Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    You need to add the conditions as a custom expression for each of the labels like this:
    The expression format is:
     
    if(equals(item()?['triggerOutputs()']['body/Urgency/Value'], 'Red'), 'true', 'false')
     
    Although this is the expression I used in the above to demonstrate: if(equals(triggerBody()['text'], 'Red'), 'true', 'false'). You don't show your entire flow, so I assume because the expressions you have tried contains item, you are doing this within an apply to each action. If not, you would follow the format I used for the expression.

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard