Thank you for the feedback!
I’ve attached two pictures to provide more context:
Get Plan Details and Append to Array:
- This step fetches the category descriptions from the plan and appends them to an array variable. Each entry in the array includes corresponding category descriptions for each task.
Get Task Details and Compose Applied Category:
- This step retrieves the task details, and within this, a Compose action is used to identify the applied category which returns true for each task.
Challenge:
I am trying to compare the applied categories from the task details with the category descriptions from the plan details to retrieve the corresponding category description.
Current Approach:
In the "Apply to each" loop for the tasks, I have a Compose action where I am attempting to extract the category description using the following expression:
first( filter( variables('CategoryDescriptions'), equals(item()?['planId'], items('Apply_to_each')?['planId']) ) )['categoryDescriptions'][items('Apply_to_each')?['key']]