- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2016 08:06 PM
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
Solved! Go to Solution.
- Labels:
-
Service Mapping

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2016 10:40 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2016 09:46 AM
Thanks Team