Hi there Microsoft Community!
I am trying to build a scheduled flow to go through active (uncomplete) titles of Planner tasks, and active (uncomplete) Todo tasks.
A end of day sync as my flagged emails create Planner tasks.
Idea will be if the title/subject is the same, it will do nothing.
But if there is a mismatch, and one active title exists, it will complete either the ToDo Flagged emails folder or Planner task.
In a past flow I used on trigger
@equals(triggerOutputs()?['body/status'], 'completed')
but this scenario is quite a bit different.
So far this is what I have, and no success.
Hi @SimonB2020,
You added it directly after your List to-do's by folder (V2) action and used the Body in the From field? Did you try copy/pasting it into the action via edit in advanced mode option?
Below is an example (click on the gif to see it in higher resolution).
Actually @Expiscornovus it will not allow me to enter that expression, it keeps coming back as invalid.
Any ideas?
Thank you for this!
Hi @SimonB2020,
You can use a Filter Array directly after your List to-do's by folder (V2) action to only retrieve active tasks. This will make the list of tasks you are using to compare a lot shorter. (You can also do the same for planner tasks as well).
Below is an example of using such a filter array.
Use this for the where statement
@not(equals(item()?['status'], 'completed'))
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492