I am trying to create two variables "OnStart". First Set(CurrentUser, User()) and second Set(AdminUser, to specific person that is a admin. I am trying to do this in order to set up an icon on my home screen that only admins can get into based off an IF function that would go something like: If(CurrentUser = AdminUser, Navigate(AdminScreen), Notify("You don't have admin rights.")). I am not sure how to set the second variable to capture all the information of the admin profile. Any suggestions?
@links to members
Try first
Set (currentUser, User().Email )
then
set (AdminUser, [userEmail])
this will be easier to compare.
Else if you want to set it to the entire user this is the format the second variable would be in:
{ FullName: “Monika Singh”, Email: “monika123@tsinfo.com”, Image: “blob:1234…5678” }
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
65
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1