Is It a best Practise to use Glide Record in client script or not?

Sagar_pawar
Tera Contributor

Hello All ,

I have used glide record  to popup  details of table in client script 

when we select caller then email of caller ,company name value  appear on respective caller and company field.

Thank You.

  

1 ACCEPTED SOLUTION

Pavankumar_1
Mega Patron

Hi @Sagar_pawar ,

 GlideRecord is not recommended on Client script.

GlideRecord is server side API if you want go get some data or validate from the server use GlideAjax API.

Refer below link to understand the GlideAjax API in client script.

https://developer.servicenow.com/print_page.do?release=quebec&category=null&identifier=c_GlideAjaxAP...

 

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

View solution in original post

6 REPLIES 6

Edgar10
Tera Guru

Hi  ,

 

You cannot used  Glide Record on a Client script.

 

What you can do is create a script include which is client callable and used it in your client script.

Hopes this helps you.

 

Regards,

Edgar

Pavankumar_1
Mega Patron

Hi @Sagar_pawar ,

If my response helped you to resolved the issue then close the question by Accepting solution and hit thumb icon. From Correct answers others will get benefited in future.

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar