cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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

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.

1 ACCEPTED SOLUTION

Accepted Solutions
gamoraes
Memorable Member
Memorable Member

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

 


Did I answer your question? Mark my post as a solution!

Gustavo Moraes, o astronauta brasileiro do Flow!


View solution in original post

2 REPLIES 2
gamoraes
Memorable Member
Memorable Member

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

 


Did I answer your question? Mark my post as a solution!

Gustavo Moraes, o astronauta brasileiro do Flow!


View solution in original post

Gristy
Resident Rockstar
Resident Rockstar

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

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,484)