cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TorreyFalconer
Helper IV
Helper IV

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
v-alzhan-msft
Community Support
Community Support

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
v-alzhan-msft
Community Support
Community Support

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

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

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,610)