
Announcements
I have created a flow to delete Microsoft planner tasks once they have aged 70 days. I tested the flow, and it tested successfully, however the final task of deleting a planner card did not happen due to an action branching condition not satisfied. I will post screenshots of my flow below.
why is going to the "if not" condition instead of calculating the completion data is less than the calculated time so I will delete the ID of this task
Hi @scren ,
Please check this test:
I use a scheduled flow that runs every morning at nine o'clock (East 8th District).
Because my area is UTC+8, the flow uses the world standard time format, so I converted utcNow() to UTC+8 format.
And then determine whether the task is satisfactory for completion in the past 70 days.
utcNow()
formatDateTime(items('Apply_to_each')?['completedDateTime'],'yyyy-MM-dd')
addDays(utcNow(),-70,'yyyy-MM-dd')
Best Regards,
Sunshine Gu