Can I Use GlideRecord into UI Action?

Gaetano De Mitr
ServiceNow Employee
ServiceNow Employee

Hi guys,

I have a UI Action client-server. Can I use GlideRecord object? It's a good practice or I have to use GlideAjax with Script Include?

Thanks,

13 REPLIES 13

Chuck Tomasi
Tera Patron

Hi Gaetano,



Yes, you can use GlideRecord in the client portion of your UI action. Best practice is to use GlideAjax when possible. It's more efficient in almost all cases.


Sorry,



GlideRecord even work in client portion?


It should. Are you running in to issues?


My priority is query a custom servicenow table from UI Action and my doubt is:



- What is the scope of the GlideRecord Object?


- Better to use GlideAjax for my problem?



Thanks,