Skip to content
← ServiceNow World

Scripts

Copy-ready ServiceNow scripts, each with how it works and the gotchas. Written fresh on out-of-box tables. Read before you run.

Fix scriptglobal

Find duplicate values in any table

List values that appear more than once in a field, such as duplicate user emails or CI serial numbers, using one aggregate query.

#glideaggregate #data-quality #duplicates

Client scriptglobal

GlideAjax: call the server from a client script

The standard, asynchronous way to fetch server data from a form: a client-callable Script Include plus a client script that never freezes the browser.

#glideajax #client-script #script-include

Background scriptglobal

GlideDateTime: date maths you can trust

Add and subtract days, compare dates and measure durations with GlideDateTime, avoiding the time-zone mistakes that break date logic.

#glidedatetime #dates #scripting

Script Includescoped

Read system properties with types and defaults

A small Script Include that reads system properties as numbers, booleans or lists with safe defaults, so code never hardcodes sys_ids or thresholds.

#system-properties #configuration #best-practice

Scripts are MIT-licensed and provided as-is, without warranty. Test in a sub-production instance first. Want a script for something specific? Suggest it.

The build notes

ServiceNow know-how,
in your inbox.

New articles, copy-ready scripts and, soon, update sets and AI agent templates. No spam, unsubscribe anytime.

Sent by RSA Innovations Inc., Kitchener, Ontario, Canada ·Privacy