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 / Planner - access labels
Power Automate
Unanswered

Planner - access labels

(0) ShareShare
ReportReport
Posted on by 4
I have built an array of planner tasks and the label is stored as an object, not an array. I'm not sure how to access the object value in a condition statement. I basically need to know if it is set to true.

The variable is output in the Select as:

"Category": {
"category6": true
}

I need to know which category is set to true.

TIA
Categories:
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @String ,

     

    I have tested it on my side, these are screenshots of flow configuration to refer:

    Firstly, I initial a variable to store the object of TestObject.

    Secondly, initial an Array to store the category of TestObject, such as category1,  category2, etc.

    Annotation 2019-07-23 131223.png

    Thirdly, add apply to each to get each value of Category Array. Then determine the value of the category from TestObject whether equal to true.

    -If yes, output the corresponding value of Category Array.

    Annotation 2019-07-23 132232.png

     

    This is the screenshot of run successfully:

    Annotation 2019-07-23 131536.png

    Please have a try, I hope it will help you.

     

    Best Regards,

  • String Profile Picture
    4 on at
    I should have mentioned, I need some error handling because only one Category will exist and sometimes no categories exist i.e the object is empty.
  • String Profile Picture
    4 on at
    I worked this out with the aid of the original answer provided.

    Thanks
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @String Is there any way you could share your flow? I'm very interested in how you're utilizing Planner tasks in an array, and whether or not you're able to edit once-thought-to-be-inaccessible labels within the confines of PA.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard