Client Script $Crm.user.role returning undefined
Hey all!
I have a client script I'm trying to run based off of the user's role. I'm able to use the following:
var fname = $Crm.user.first_name;
To properly return a first name when logging in the console, but whenever I try the same with $Crm.user.role or any other field other than first_name and last_name all I receive is "Undefined."
Any clue why this might be?
Screenshots:
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.