
Hello All,
I am trying to built an app as the follwing:
I have 2 types of users (owners and admins) but each of them has different screen.
I build a spesific screen for each one of them. Also, I build a List (manage Access) in SharePoint365 that contains two columns (Email and Role).
I need to chack if the user has access first depending if his name is in Manage access list (done) 🙂
Now I need help in the navigate function where I have to retrieve the role of the user and take him to his screen.
ForAll(AccessManagment, Switch(User().Email , Email.Email, Navigate(AdminsMainScreen,None)))
my list's name is AccessManagemtn ; I have check if the user in the Email colunm (works) but I need to direct the user to a screen depends on his role ??
In my code here I have only one option to navigate to the Admin Screen , but I need to make this navigate function retrieve my user role an take him to his screen !!! 😞
Thank you in advance,
Bassel