Sharepoint List

Copper Contributor

I have two Shorepoint lists.  

 

1. Parent List 

2. Child List 

 

There is a look up column on the child list for the name of the person from he parent list .  Over time there is more names added to the parent list.  Each year we need to delete the names of the parent list if they do  not show on the child list.   Any ideas how I would set up a flow 

 

2 Replies

@james_fenna 

 

The Flow could use the REST API of  the Child list to check there are no records matching.

 

For Each Parent (If the count in the Child List query = 0 ) then delete the parent. How to do it exactly I don't know. 

 

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-re...

 

More of a sign post than a solution. 

@Andrew Hodges  Thanks for your reply, I will have a look into this