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)
2)
3)
Solved! Go to Solution.
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:
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.
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:
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.
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.
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
45 | |
42 | |
36 | |
36 | |
22 |
User | Count |
---|---|
41 | |
31 | |
29 | |
28 | |
26 |