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:
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.