Hello,
Your collection should be
ClearCollect(lstIds,{code:"11"},{code:"22"},{code:"33"},{code:"44"});
I don't know the type of the "varRecord" object, so I am assuming that either it is a collection or a variable.
If "varRecord" is a collection, i.e. ClearCollect(varRecord,{code:"77"},{code:"22"},{code:"33"},{code:"44"});, then write the below formula,
Filter(varRecord,Not(code in lstIds.code))
If "varRecord" is a variable, i.e. Set(varRecord,77), then write the below formula,
Filter(lstIds, code<>varRecord)
Please click Accept as Solution, if this solution solved your issue.
Thanks & Regards,
Devendra Singh