Hi,
I have a table that has a list of users, emails and parts of the app they are allowed to have access to:
What I am trying to do is on App Start, search this table and if my username matches an entry, then if HRAccess, SecurityAccess and AdminAccess are yes then the end user will have access to those screens which have a 'Yes' marked on them. I have the following collection:
ClearCollect(
varAccessCheck,
Sort(
NewEmployeeAccess,
ID,
Descending
)
);
Set(varEmail,First(Filter(varAccessCheck,'EmailAddress');
Set(varHR,First(Filter(varAccessCheck,'HRAccess');
Set(varAdmin,First(Filter(varAccessCheck,'AdminAccess')
Can anyone advise why my code is not working and if I should create global variables as above, then reference them across my screens in my app or if I should create a collection at each screen and check there? Please note that using Office365 groups to control screen access is not an option here.
Cheers,
Geoff.

Report
All responses (
Answers (