Hi,
many thanks for your guidance.
I made some changes and I wrote this:
ClearCollect(colNav, If(LookUp(Admins, currentUser = User().FullName, Role) = "Admin", Table(
{
MenuText: "Home",
MenuIcon: Icon.Home,
ScreenToGoTo: Home
},
{
MenuText: "Resources",
MenuIcon: Icon.Items,
ScreenToGoTo: Resources
},
{
MenuText: "Bookings",
MenuIcon: Icon.CalendarBlank,
ScreenToGoTo: Bookings
},
{
MenuText: "Reports",
MenuIcon: Icon.Database,
ScreenToGoTo: Reports
},
{
MenuText: "Knowledge Base",
MenuIcon: Icon.Notebook,
ScreenToGoTo: KB
}),Table({MenuText: "Home",
MenuIcon: Icon.Home,
ScreenToGoTo: Home
},
{
MenuText: "Resources",
MenuIcon: Icon.Items,
ScreenToGoTo: Resources
},
{
MenuText: "Bookings",
MenuIcon: Icon.CalendarBlank,
ScreenToGoTo: Bookings
})
));
Set(currentUser, User());
Set(adminAccess, IsBlank(LookUp(Admins, Fullname.Email = currentUser.Email && Role.Value = "Admin")));
But now the navigation is not showing to me anymore. (I have a sharepoint list named " Admins" where my Role = Admin...)
I think I messed up somewhere...
Joelle