Code Snippet
7 items tagged with "Code Snippet"
ServiceNow (31)
Code Snippet (7)
Release: Orlando (6)
Performance (5)
JavaScript (4)
GlideRecord (3)
VS Code (3)
Release: New York (2)
ACL (1)
Attributes (1)
Client Script (1)
Debugging (1)
Email (1)
GlideAggregate (1)
Logging (1)
MomentJS (1)
Scripting (1)
Search (1)
Security (1)
Service Portal (1)
Snippet (1)
Table Extension (1)
Templates (1)
URL (1)
Workflow (1)
Workspace (1)
Snippets
Variable selectedSysIds will consist of sys_id`s of selected records. To be used from a UI Action (List). var selectedSysIds = g_list.getChecked();
Useful snippets for working with URL from a lient script Redirect to a page with a form for creating a new record var query = [ "active=true", …
Most of the times its much easier to work with encoded query instead of builing a query with GlideRecord API: var query = "category=Hardware^priority=1"; var gr …
GSlog is the best way to output log infos from ServiceNow server scripts. Consider this snippet to get started. var logger = new global.GSLog('','My script'); …
How to redirect to another portal from record producer