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 12:28 AM
Hi Sri,
The method getRecord() is no longer usable to access record field values.
For example a construct like:
javascript:gs.getUser().getRecord().getValue('department')
needs to be replaced with:
javascript:gs.getUser().getDepartmentID()
In your case you can simply use the following:
javascript:gs.getUser().getLocation();
If this doesn't work, please try the solution provided below (using Script Include):
Hope this can fit your need!
If I have answered your question, please mark my response as correct and/or helpful.
Thank you very much
Cheers
Alberto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 01:49 AM
Hi Alberto,
Thanks for your response.
we are using many string variables like department,employeenumber...etc..
May i know is there any javascript method that can be used here?
Thanks,
Sri

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 02:22 AM
You can try using:
javascript:gs.getUser().getLocation();
If this doesn't work, the only way to go define a new Script Include and call in the javascript code itself.
Cheers
Alberto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 04:10 AM
Hi Alberto,
Can you please help with this script include?
Thanks,
Sri