The company I work for decided to do a split of users for a test of 0365 and Active Directory users. I have a mix of user accounts that log into the PowerApp.
What I do know if I do these under visible:
AD users:
SharePointIntegration.Selected.'Supervisor Email'.Email=CurrentUser.Email
0365 users
SharePointIntegration.Selected.'Supervisor Email'.Email=UserProfile.Email
Individually they work.
but I need both of these to work
When I try :
SharePointIntegration.Selected.'Supervisor Email'.Email=CurrentUser.Email && SharePointIntegration.Selected.'Supervisor Email'.Email=UserProfile.Email
I get errors.
how can I get the visible to take both lines of code, that way no matter if the user is in AD and or the 0365 that it will pick up the email address.