O'Reilly logo

Mastering ServiceNow by Martin Wood

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Efficiently transferring data to the client

The client-side version of GlideRecord is useful for situations where the dataset is limited and known. However, it doesn't give you total control over what is sent and received. This can lead to unnecessary data transfer and an application that seems to be slow.

GlideAjax is a technique that allows you to craft a specific communication interaction between the server and client, ensuring that only relevant data is transferred. At the moment, the VIP-alerting script returns the whole user record. Let's improve it by only returning a single field value.

Writing a Script Include for GlideAjax

GlideAjax comes in two parts: a client and a server script. A Script Include script should be written that extends ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required