OAuth 2.0 is a widely adopted authentication method across numerous ServiceNow integrations. Whether it’s for a custom scripted integration or an Integration Hub spoke, OAuth token flows are frequently utilised. Two of the most commonly employed flows are the ‘Client…
Tag: servicenow
Exploring dictionary types : Name-Value Pairs
JSONs are widely recognised for their capability to store multiple values in a single variable. In ServiceNow, we frequently use JSONs in our scripts; however, there is also a dictionary data type available. This allows you to store a simplified…
Custom Event Queues
ServiceNow’s event queues are mechanisms used to manage and process system events asynchronously. Events trigger actions based on conditions, enabling tasks such as notifications or workflows. When examining the Events [sysevent] table, you’ll notice that certain out-of-the-box (OOB) events have…
Base64 encoded Attachments
A common use case when working with integrations in ServiceNow is dealing with attachments in base64 format. However, the information on how to accomplish this is often scattered across different sources. This article aims to provide clear and effective code…
Link Outgoing SLA Emails to Task
The SLA engine in ServiceNow efficiently manages Task records, such as Incidents and Cases, by sending timely email notifications to agents and management. This proactive communication helps prevent imminent breaches, ensuring that Service Level Agreements are consistently met. Due to…
Importing Nested JSONs
JSON (JavaScript Object Notation) is a lightweight data interchange format that’s easy for humans to read and write, and easy for machines to parse and generate. It’s commonly used for transmitting data in web applications between servers and clients. JSONs…
Scheduled Events and Script Actions
There are various methods to execute server-side logic in ServiceNow, with business rules and script includes being among the most common. However, when there’s a need to delay the execution of logic for a specified period, the options become limited.…
Attachments from Draft Record Producers
The Washington release introduced a wealth of new features to ServiceNow, including the highly anticipated ‘Save as Draft’ functionality for portal forms. This feature allows users to save incomplete forms as drafts and return later to finish and submit them.…
Calendar Sync for Dispatcher Workspace
The Field Service Management application in ServiceNow offers a dedicated workspace for dispatchers, allowing them to assign work order tasks to field agents using a drag-and-drop interface. Additionally, dispatchers can view the agents’ ServiceNow calendars to check for any existing…
Bi-directional Journal Field Sync
In the ServiceNow ecosystem, we frequently encounter the requirement to synchronise journal field entries, such as Work Notes or Additional Comments, between related task records. The most straightforward approach is to use business rules. This method works well for unidirectional…