I want to navigate to different screens based on roles. User, Admin
As when I take SharePoint list as a database for Users it works perfectly but when I use Dataverse it shows error in roles.
Is it important to have a license for the role? I have made a custom table.
Set(
User_role,
LookUp(
'Role Assigns',
'Email Address' = email_vv.Text And Password = password_vv.Text
).Role
);
If(
IsBlankOrError(User_role),
Notify(
"Incorrect Password or Username",
NotificationType.Error
),
If
( 'Role (Role Assigns)'.Admin=1 ,Navigate('Admin Menu Choice'),Navigate(Menu_choice))
);
Reset(email_vv) & Reset(password_vv)
I am using this formulaa...
please help