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 flow when MS pl...
Power Automate
Unanswered

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
    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
    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

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