gliderecord examples
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2017 04:32 AM
HI Team,
Can you please provide real time scenarios for the glide record and for script includes.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2017 04:36 AM
Hi Rangadevi,
Links below should help you understand better.
Glide Records - GlideRecord - Scoped & Using GlideRecord to query tables
Script includes - Script includes & sample example for script include call from client script

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2017 04:38 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2017 05:13 AM
Hi,
Yes, I've done some videos this. In invite you to watch ep 6 of TechNow for script include information.
GlideRecord is the Javascript API for interacting with the database. An example:
// Get all incidents
var inc = new GlideRecord('incident');
inc.query();
while (inc.next()) {
gs.info(inc.getDisplayValue());
}
If you want add filters, use the addQuery() method like this...
var inc = new GlideRecord('incident');
inc.addQuery('active', true); // get only records where the active field is true
inc.query();
while (inc.next()) {
gs.info(inc.getDisplayValue());
}
There are plenty of other methods to use for update/creating/deleting records. In invite to read the documentation with examples and watch some of the other videos.
https://developer.servicenow.com/app.do#!/api_doc?v=jakarta&id=r_GlideRecord-GlideRecord_S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2017 05:58 AM
Thank you so much Chuk for response.