cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
String
Regular Visitor

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
v-bacao-msft
Community Support
Community Support

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.

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
Regular Visitor

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

Thanks
Anonymous
Not applicable

@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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,481)