
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2014 08:01 AM
In my previous organization where I started with ServiceNow we were advised to use GlideAjax in async mode on client side scripts instead of GlideRecord. GlideRecords too can work in async mode. So was this advise incorrect?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2014 02:39 PM
Depends what you are trying to achieve really.
aysnc client side gliderecord is is identical as far as I can tell as an async glideajax call (performance wise aswell ) as they both send the request and await the response with a callback function.
HOwever be careful with your queries, client side glide records adhere to ACLs whereas server side ACLs do not. So if the information is secure away from the user via an ACL, you'll need to use a glideajax call.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2014 01:07 PM
To my knowledge, GlideRecords themselves do not work in async mode, but Business Rules incorporating the use of GlideRecords can run in async mode.
Using GlideAjax instead of GlideRecords directly in client side scripts is still the better way to go - Client Script Best Practices - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2014 02:45 PM
Hi Jim,
I think that ravio is talking about the newer client side GlideRecord. It provides a wrapper that calls out to the server, executes a query and returns the result to the client asynchronously.
Trey Carroll
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2014 03:08 PM
Right, the client-side GlideRecord is a limited version of the server-side one. But it's not really new, and it actually performs the queries "synchronously". That's why GlideRecords on the client side are frowned upon.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2014 11:19 PM