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 / Creating a flow to rem...
Power Automate
Answered

Creating a flow to remove a planner task when an item is deleted on sharepoint

(0) ShareShare
ReportReport
Posted on by

I have a flow that creates a planner task when I create an new item on sharepoint, I would like another flow to register on this planner task some details when this item is deleted on shapoint.

Categories:
I have the same question (0)
  • Verified answer
    gamoraes Profile Picture
    1,040 on at

    Hi @Anonymous 

     

    First of all you need to save the ID of SharePoint item in planner task.

    I recommend to save the task in planner with Title =  ID - SharePoint Title.

     

    Next you'll build your flow with "When a item is deleted", this action don't brings all item information, it's bring only ID and deletion information (How delete, when deleted and etc).

     

    Your flow structure need to:

    • List all planner tasks
    • Use a condition to see if Task Title has the ID
      • I use the condition 
        first(split(items('Aplicar_a_cada')?['title'],','))
    • Update Task details (to add how and when deleted)
    • Update Task ( change status)

    See the print bellow:

     

    image.png

     

  • Gristy Profile Picture
    2,429 on at
    • Lets say your data is in ListA.
    • Create a list called ListB with following fields Title, PlannerID
    • When item is created in ListA use your existing planner creation flow to create an item in ListB set Title=ListA.ID and PlannerID to the PlannerTask created by your flow.

     

    Then on your deleted item flow, query ListB where ID eq ListB.Title and then delete the PlannerTask by ID and also the list item.

     

    Although you are storing a extra list of data, it is completely maintained by flow and you do not need to be restricted to what the title is called, and most likely your users will break your logic with the above method as they will rename things to make them more user friendly.

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard