cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
String
Level: Powered On

Planner - access labels

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
4 REPLIES 4
Community Support Team
Community Support Team

Re: Planner - access labels

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
String
Level: Powered On

Re: Planner - access labels

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
Level: Powered On

Re: Planner - access labels

I worked this out with the aid of the original answer provided.

Thanks
CLaPo
Level: Powered On

Re: Planner - access labels

@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.

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Coming Soon: T-shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Users online (5,838)