cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
TorreyFalconer
Level: Powered On

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 Team
Community Support Team

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
Community Support Team
Community Support Team

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

TorreyFalconer
Level: Powered On

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

Community Support Team
Community Support Team

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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 154 members 3,209 guests
Please welcome our newest community members: