What is difference between GLIDE AJAX Call and getReference() call In client script.

srikanth241
Mega Expert

Hi Team,

                            Can anyone explain the difference between glide ajax call and getReference() call in client script, can you give some examples when should we use. Which is the best to use from performance view.

thanks ctomasiITSM: GeneralIT Service ManagementDeveloper CommunityServiceNow Community

1 ACCEPTED SOLUTION

The SN Nerd
Giga Sage
Giga Sage

GlideAjax - returns only the data you specify, does not block the browser when using .getXML()


getReference - returns all fields on the record, does not block the browser when using callback function.



GlideAjax will always give the best performance, but is significantly more complex to code.



You should use GlideAjax if your code is intended for production.



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

View solution in original post

5 REPLIES 5

srikanth241
Mega Expert

Thanks Team