Hello,
I feel like this should be easy, but it's not working. I have a Sharepoint list with email addresses as the title, and then an option field that is "A" "B" or "C".
Within PowerApps, I want to set a different variable OnStart based on looking up which option (A, B, or C) coincides with that user's email address.
I was trying this, but it wasn't working. Any other ideas on a better way to do this?
If(LookUp('Sharepoint', User().Email=Title).Option="A",Set(varA,true));
If(LookUp('Sharepoint', User().Email=Title).Option="B",Set(varB,true));
If(LookUp('Sharepoint', User().Email=Title).Option="C",Set(varC,true));
Thanks!