GlideRecord

/Tag: GlideRecord

Generate a GlideRecord Query for a List

By | 2018-07-09T14:59:52+00:00 August 14th, 2014|Categories: Scripting, System UI|Tags: , |

Have you ever wanted to get a quick GlideRecord Query for a list you’re looking at? I’ve wanted to do that many times. Sometimes it’s because I’m writing a business rule and sometimes I’ve got to run a background script to update some values. I ran into this yesterday when I was working on a scripted [...]

Checking for Modified or Changed Fields in Script

By | 2018-07-09T15:00:01+00:00 January 20th, 2011|Categories: Business rules, Client scripts|Tags: , , , , , , |

Working in Service-now, you’ll find that a lot of scripting tasks come down to identifying which fields changed on a form (client-side) or record (server-side). In this post, I’ll show you some different techniques to identify changed fields in both client-side, and server-side scripts. I’ll also show you a way that you can capture changed fields [...]

Distinct GlideRecord Query

By | 2018-07-09T15:00:02+00:00 January 19th, 2011|Categories: Scripting|Tags: , |

Here’s a cool tip that I’ve actually wanted to know how to do for a long time. I can’t take credit for it though. I got the idea from a post of a Service-now customer admin, Garrett Griffin. So, thanks to Garrett for the inspiration. I think this is worth sharing with a larger group of [...]

Returning Random Records Using GlideRecord

By | 2018-07-09T15:00:07+00:00 September 2nd, 2010|Categories: Scripting|Tags: |

I had a request from a client recently to generate a random list of records from a given table (specifically the Configuration Item table). These items would be used as a pool of records for a random audit of the records in that table. I don’t think this will be used all that often but I [...]