
HI,
I have list with role and email id mentioned below
role email id
trainer 123@support.com
Admin 345@support.com
and I have different screen for each role i.e Trainer screen, LP screen, Admin screen
In this when I log in with user ID of 123@support it should automatically check in SharePoint and see that I am trainer and it should direct to Trainer screen in power apps. Is that possible?
Thanks in advance
App.OnStart Property:
Set(varRole,Lookup(SpListname,Lower(User().Email)=Lower(Email)));
If(varRole="Trainer",Navigate(Screen1),If(varRole="LP",Navigate(Screen2),Navigate(Screen3)))