Hi
I'd like to 'hide' some fields on my canvas app to certain users, I think I'm nearly there but struggling with the syntax.
I have on my App OnStart:
Set(VarUser, User().Email);
Set(Approver, LookUp(ListName, Email = VarUser))
On my field DisplayMode i have put the following:
If(VarUser = Approver, DisplayMode.Edit, DisplayMode.View)
But i'm getting a red line under = cant see how I get this to work, unless someone has a better suggestion.
The ListName I am 'lookup' has 1 email address (for now) with a coloumn titled Email and the email address is free text, (unless i can set this to person field and it would still work)?
I would like to store all the approvers in this SPO list and the columns i would set to be in edit mode only if the users were in that list.
I tried working with collections, but my items would get deleted and i would like to use this same approver list for many different apps, it makes sense to use a SPO list i can use multiple times.
Thanks