cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (3,659)