@Anonymous
Your delegation issue comes from the in operator. In order to avoid the delegation, you would need to remove the use of that operator.
One way to achieve this would be the use of a ForAll function - similar to this:
ForAll(RenameColumns(colItemstoDelete, "ID", "removeID"),
RemoveIf('Call Metrics Reporting',ID = removeID)
)
Also with this, as a bonus, you can modify the base collection as you go (if you need to for some reason):
ForAll(RenameColumns(colItemstoDelete, "ID", "removeID"),
RemoveIf('Call Metrics Reporting',ID = removeID);
RemoveIf(colItemstoDelete, ID=removeID)
)
-OR- (if you have some status column in the collection)
ForAll(RenameColumns(colItemstoDelete, "ID", "removeID"),
RemoveIf('Call Metrics Reporting',ID = removeID);
UpdateIf(colItemstoDelete, ID=removeID, {status:"Removed"})
)
Just a little extra to keep in mind.