So i have two collections, where a collection1 may be referenced in collection2. I want to get a new collection to know which of the records in collection 1 are not referenced in any of the records in collection 2.
I have tried to use the ForAll function like, but it fails. I dont think I can use an If inside ForAll like this:
ForAll(
RenameColumns(
coll1,
"name",
"Coll1Name"
),
If (
CountRows(Filter(coll2,'Coll1 Name' = Coll1Name))=0,
Collect(
collNew,
LookUp(coll1, name=Coll1Name)
)
)
)
);
What would be the best method to achieve my goal here?