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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Delete flow when MS pl...
Power Automate
Answered

Delete flow when MS planner task has reached up to 3,000 tasks.

(0) ShareShare
ReportReport
Posted on by 7

Hi All,

 

Is there any way to create a flow when number of planner task is over than 3,000? 

Because MS planner has limitation that the number of task is 3,000 then I'd like to create a flow to delete older and completed tasks automatically when the limitations are reached. 

Categories:
I have the same question (0)
  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @adelev125 ,

     

    Do you want to automatically delete expired and completed tasks when the number of planner tasks exceeds 3000?

    I have made a test for your reference.

    length(outputs('List_tasks')?['body/value'])
    @and(less(item()?['dueDateTime'], utcNow()),not(equals(item()?['completedDateTime'], null)))
    item()?['Id']

    vyujincuimsft_0-1642066196445.png

    vyujincuimsft_1-1642066196453.png

    vyujincuimsft_2-1642066196455.png

    Result Screenshots:

    vyujincuimsft_3-1642066196458.png

    vyujincuimsft_4-1642066196459.png

     

     

    Best Regards,

    Charlie Choi

  • adelev125 Profile Picture
    7 on at

    Hi Charlie!

    It's really helpful solution for me. Thank you for your effort.

     

    BTW, I have one thing to ask. 

    In your flow, It seems to correspond to a task within a particular project after specifying a specific group of projects rather than listing the entire planner's task list, but may I modify the flow to correspond to the entire list of planner?

     

  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @adelev125 ,

     

    You can try to list all Tasks and count the total number, and then determine if you need to delete them.

    I have made a test for you.

     

    1.Create a flow.

    add(add(length(outputs('List_tasks')?['body/value']),length(outputs('List_tasks_2')?['body/value'])),length(outputs('List_tasks_3')?['body/value']))
    @and(less(item()?['dueDateTime'], utcNow()),not(equals(item()?['completedDateTime'], null)))
    item()?['Id']

    vyujincuimsft_0-1642471978394.png

    vyujincuimsft_1-1642471978399.png

    Details:

    vyujincuimsft_2-1642471978403.png

    Result Screenshots:

    vyujincuimsft_3-1642471978407.png

    vyujincuimsft_4-1642471978409.png

     

    Best Regards,

    Charlie Choi

  • adelev125 Profile Picture
    7 on at

    YOU ARE THE BEST! 

     

    Really appreciate it!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard