Category: Scripts
-
Custom Content Block – Show Service Catalog Links
Users wanted a widget to quickly access the Service Catalog from their dashboard. I created this content block that can be added to dashboards.
-
Validate if End Date is after Start Date
Simple client script to validate if end date is after start date.
-
Daily Email Summary for Active Tickets Assigned to Users
ServiceNow Daily Email Summary for Active Tickets Assigned to Users
-
How to use autoSysFields(false) and setWorkflow(false)
ServiceNow – How to use autoSysFields(false) and setWorkflow(false)
-
Find Duplicate Asset Tags
Here is a background script for finding duplicate asset tags in hardware asset table.
-
Find Duplicate Users
Here is a script to easily find users with the same name in the system. Useful for proactively detecting and fixing duplicates.
-
Restart RITM Workflow
Here is a background script for restarting a workflow. You can also consider creating a UI action.
-
Copy Comments from Requested Item (RITM) to All Active Catalog Tasks (sc_tasks)
ServiceNow Business rule to copy RITM comments to all active child catalog tasks. This is useful for when the requestor adds a comment to the RITM, and we need to communicate that comment to the sc_task fulfillers. Business RuleTable: Requested Item [sc_req_item]AdvancedBefore UpdateCondition: Additional comments changes
-
GlideRecord Reference Sheet
Examples only Query Active Incidents Query Using Get Insert Record Delete Multiple Encoded Query Get Row Count Set Limit orderBy / orderByDesc
-
How to use ServiceNow JavaScript Executor
The client-side equivalent of a background script.
