Batch-update records safely from a background script
Update thousands of records in controlled batches, with a dry-run switch and logging, so you can see the impact before you commit.
#gliderecord #bulk-update #performance
Copy-ready ServiceNow scripts, each with how it works and the gotchas. Written fresh on out-of-box tables. Read before you run.
Update thousands of records in controlled batches, with a dry-run switch and logging, so you can see the impact before you commit.
#gliderecord #bulk-update #performance
A before-update business rule that stops an incident being resolved without resolution notes and tells the user why, without breaking the form.
#business-rule #data-quality #itsm
Get record counts, totals per group and simple statistics in one database query instead of loading every row into memory.
#glideaggregate #performance #reporting
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
A reusable custom action script step that validates inputs, does one job, and returns clear outputs and errors the flow can branch on.
#flow-designer #custom-action #integrationhub
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
Add and subtract days, compare dates and measure durations with GlideDateTime, avoiding the time-zone mistakes that break date logic.
#glidedatetime #dates #scripting
Show a field and make it mandatory only when another field has a specific value, and reset both cleanly when it changes back.
#client-script #g_form #forms
Call an external API from a script with RESTMessageV2: a timeout, status checks, safe JSON parsing and useful logs, without leaking secrets.
#restmessagev2 #integrations #error-handling
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
Build complex filters in the list view, copy the encoded query, and use it in scripts safely, with a quick check that the query is valid.
#encoded-query #gliderecord #productivity
An inbound API that creates or updates a record using the caller’s ID, so retries and duplicate calls never create duplicate records.
#scripted-rest #integrations #idempotency
No scripts match. Try another word.
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
New articles, copy-ready scripts and, soon, update sets and AI agent templates. No spam, unsubscribe anytime.