Emptying specific references of a reference set

I have an overview (grid) of target lists for marketing in a dataview of a person (showing all the target lists to which the person belongs). There is a reference set between target list and person. I want to be able to empty the reference between one or more of the selected targetlists and the person. So now I have a microflow with two inputparameters: a list of targetlists and a single object of type person, how do I empty the references between the selected targetlists and the person?
1 answers

Iterate over the selected target lists using a looped activity, then perform a change on each target list. Change the reference set, select the 'Remove' option and use the person object as the change value. This removes the person from the reference sets of the selected target lists.