Andre Dev Log
Andre Dev Log
Home
Posts
Snippets
About me
Snippets
Promisified GlideAjax
When client scripts rely on multiple GlideAjax calls, callback nesting can quickly become hard to read and maintain. A small Promise …
Feb 1, 2026
ServiceNow
,
JavaScript
Search through all code
Every ServiceNow instance has an OOB page for codesearch: https:// …
Mar 1, 2021
ServiceNow
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 …
Feb 17, 2021
ServiceNow
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: …
Jan 2, 2021
ServiceNow
,
Release: Orlando
,
Release: New York
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: …
Nov 2, 2020
ServiceNow
Working with g_list
Variable selectedSysIds will consist of sys_id`s of selected records. To be used from a UI Action (List). var selectedSysIds = …
Oct 28, 2020
Code snippet
,
ServiceNow
Manipulate URL from client script
Useful snippets for working with URL from a lient script Redirect to a page with a form for creating a new record var query = [ …
Oct 28, 2020
Code snippet
,
ServiceNow
Encoded query
Most of the times its much easier to work with encoded query instead of builing a query with GlideRecord API: var query = …
Oct 25, 2020
Code snippet
,
ServiceNow
Using GSLog
GSlog is the best way to output log infos from ServiceNow server scripts. Consider this snippet to get started. var logger = new …
Oct 10, 2020
Code snippet
,
ServiceNow
Setup autocomplete for a reference field
Another tiny guide
Jul 15, 2020
Attributes
,
ServiceNow
,
Release: Orlando
»
Cite
×