I have a simple SharePoint list (MyUserList) with two columns; Title and User, with User being of type 'Person or Group'. The list will be maintained by a person within the company and they will add/remove company users to the list.
In my app, I would like to see if the current user is in this list (by comparing email address), and set a variable to true if so. Essentially, something like this:
Set(
IsUserInMyList,
If(
User().Email in MyUserList.User.Email,
true,
false
)
);
But this gives me an error at the 'MyUserList.User.Email' section saying "Name isn't valid. This identifier isn't recognized". Basically, it can see the 'User' object, but not the email within.
Is there a way to read a SP list with a 'Person or Group' column and get the email?