Error Message Illegal access to method getRecord() in class com.glide.sys.User

Sri56
Tera Contributor

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

 

 

5 REPLIES 5

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader