I am trying to create a Collection in my PowerApp using data from the CDS filtering records owned by the logged in user. This is the code so far:
Set(gblUserEmail, User().Email);
Set(gblUser, LookUp(Users, 'Primary Email' = gblUserEmail));
ClearCollect(colMyReChecks, Filter('ReChecks', Owner = gblUser))
I am getting the "binary operator with incompatible types" error finding "edm.Guid" and "edm.Text". However when I check the variables, gblUser is a 'Record' and the Owner field in the ReCheck datasource is Polymorphic. I have tried using AsType but this does not work and throws delegation errors.
This had previously been working last week and now does not.
Edit: I have seen solution involving use of the 'Created By' field which works for me but it is important I have this working on the Owner field.