Error Message Illegal access to method getRecord() in class com.glide.sys.User
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 12:15 AM
Hi All,
We are getting error message as "Error Message Illegal access to method getRecord() in class com.glide.sys.User" in our RITM form.
Where we have used default value for all variables to auto populate logged in user details like email,name,employee number,landline,first_name,last_name as below format:
javascript:gs.getUser().getRecord().getDisplayValue('location') ;
when we run a script in the background it is printing result as expected. However, few of our users are landing up with this error.
Please help me.
Thanks,
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 04:41 AM
Hi Sri,
the getRecord() method should work in global scope.
It is not supported in custom scope application. By any chance are you in custom scope?
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader