web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Delete completed Micro...
Power Automate
Unanswered

Delete completed Microsoft Planner task after it is older than X days

(0) ShareShare
ReportReport
Posted on by 13

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.

 

scren_2-1713812910364.png

 

 

scren_1-1713812891440.png

 

 

scren_0-1713812874468.png

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

 

Categories:
I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    on at

    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.

    vyetonggumsft_0-1713834570176.png

    utcNow()

    vyetonggumsft_1-1713834642224.png

    formatDateTime(items('Apply_to_each')?['completedDateTime'],'yyyy-MM-dd')
    addDays(utcNow(),-70,'yyyy-MM-dd')

    Best Regards,

    Sunshine Gu

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard