Welcome

Experimenting & blogging about ServiceNow, JS, Node, Typescript
8 1

Recent Posts

Querying ref_ Fields on Extended Tables

ref_ queries are one of those ServiceNow features that are useful, slightly obscure, and easy to misuse. They show up when you start …

ACL Misconceptions That Hurt Performance

ACLs are easy to treat as a pure security feature and forget that they also sit on a hot path. When an instance loads a form, renders …

Minimize Server Lookups in Client Scripts

Client scripts get slow and noisy when every small decision turns into another server call. Most of the time, the real problem is not …

Querying Tables Best Practices

Querying tables is one of those things that looks harmless until the same script runs against production-sized data. A query that …

Advanced RegEx Search in VS Code

When standard search isn’t enough, VS Code’s regex capabilities come to the rescue. While Cmd + Shift + f works for basic searches, …

Recent Snippets

Promisified GlideAjax

When client scripts rely on multiple GlideAjax calls, callback nesting can quickly become hard to read and maintain. A small Promise …

Search through all code

Every ServiceNow instance has an OOB page for codesearch: https:// …

Get instance URL in server side scripting

Server URL is stored in following property. gs.getProperty('glide.servlet.uri') Note 1: This property does not exists in the …

Auto-login to an instance with URL parameters

There is a possibility to login to the instance via the URL. You just pass you login name and password via URL paremeters like follows: …

UI Macro: Context menu for a form header

Not an easy to find functionality is hidden in this UI macros. It is being loaded on every form and renders context menu: …