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 Duplicate Plann...
Power Automate
Suggested Answer

Delete Duplicate Planner Task

(1) ShareShare
ReportReport
Posted on by 4
Hi all
I've just dipped my toe into the world of Power Automate and I've hit a snag - I'm sure it's really straight forward, but I can't get my head around it.
 
We use MS Planner to track tasks; staff will sometimes add duplicate tasks accidentally. I'd like a Power Automate flow that will delete a new task that is created if the title of that new task already exists in that plan.
 
I've gotten myself as far as List Tasks, but that's it....I've been drowning in a sea of Initializing variables and apply to each loops....
 
Any help would be greatly appreciated!
Categories:
I have the same question (0)
  • Suggested answer
    CU09100806-0 Profile Picture
    2 on at
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    I have been able to build a flow for that, Here are steps:
    1. Trigger would be: When a new task is created
    2. List all the tasks
    3. Filter the array received by the task title of the newly created task
    4. Add a condition: If the length of the filtered array is more than 1, it means the newly created task is a duplicte
    5. Delete the task if the condition is true.
     
    Here's how the flow looks:
     
    Filter Array Action:
    Condition expression: 
    length(body('Filter_array'))
    


     
    Here's how it works:
    Add a duplicate task
    Gets removed automatically:
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
  • KM-08101538-0 Profile Picture
    4 on at
    @Nandit
    That's so helpful - thank you.
    Unfortunately that solution only works for me when I'm adding tasks to the planner manually. 
     
    I obviously forgot to give you some essential info to allow you to help properly; so sorry about that!
     
    I have a flow that creates tasks from an excel spreadsheet based on selected rows which is working well.
     
     
    I started off in a vain attempt to set this flow to not add any duplicates (which is why i've added the List tasks step). But the problem is, the tasks are detailed along the columns, not in one row, like so:
     
    So I struggled with the expression for the filter array to pull in the multiple Associated Task Columns (there are 5 in total).
    If you had any wisdom on this at all, I'd be very grateful. If not, no problem at all - your solution is really helpful and I can cascade that to others in my team.

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard