cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Deleting item from specific Sharepoint list upon Master list delete

Hey all, 

 

I need a hand here. I have two Sharepoint lists, in both of those Sharepoint lists I have created a flow that pushes any new items and their modifications into a Master list. So to be clear, this Master list is collecting items from two other lists. This part works fine.

 

I need help creating a flow so that if an item is deleted in the Master list, it can determine which list it came from and then delete that item in the original list.

 

Obviously the issue here is IDs. So in the Master list I created a "Parent ID" column so that I can see the IDs from the original lists. 

 

Here are pictures of my flow. The flow claims to be successful, but it does not delete the item in the original list. (I wish that it at least said it failed so I could determine the issue!)

 

1)

Delete issue- 1.png

 

2) 

 

Delete issue- 2.png

 

3)

Delete issue- 3.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Deleting item from specific Sharepoint list upon Master list delete

Hi @TorreyFalconer ,

 

You couldn't get the "Parent ID" column's value when the item is deleted, and ypou could get the Title of item in the Name dynamic content from the trigger "when the item is deleted", so please make sure the Title column's value in the Master list would be the same with Title column in the original list.

 

And if you could make sure the Title column's value in the Master list (list A) would be the same with Title column in the original list (list B or list C), you could refer to screenshot below to create the flow:

1.png

2.png

The expression in the Condition as below:

length(body('Get_items')?['value'])

The expression in the Condition 2 as below:

length(body('Get_items_2')?['value'])

Please let me know if your problem could be solved.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Deleting item from specific Sharepoint list upon Master list delete

Hi @TorreyFalconer ,

 

You couldn't get the "Parent ID" column's value when the item is deleted, and ypou could get the Title of item in the Name dynamic content from the trigger "when the item is deleted", so please make sure the Title column's value in the Master list would be the same with Title column in the original list.

 

And if you could make sure the Title column's value in the Master list (list A) would be the same with Title column in the original list (list B or list C), you could refer to screenshot below to create the flow:

1.png

2.png

The expression in the Condition as below:

length(body('Get_items')?['value'])

The expression in the Condition 2 as below:

length(body('Get_items_2')?['value'])

Please let me know if your problem could be solved.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

Highlighted
Helper III
Helper III

Re: Deleting item from specific Sharepoint list upon Master list delete

Hey @v-alzhan-msft 

 

I don't really have a "title" column or "name" column in either of the sharepoint lists. I re-named the title column to "Reported By" so both of the Sharepoint lists have a "reported by" column that I could you use, as the name under "reported by" shouldn't change. 

 

I tried doing this already however in the second step (Get items), it won't allow me to select "Reported by" in the Filter Query

Highlighted
Community Support
Community Support

Re: Deleting item from specific Sharepoint list upon Master list delete

Hi @TorreyFalconer ,

 

Please don't modify the column's name since the expression of the column would always be when it's created,please keep the Title and check if the flow work.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (8,101)