ServiceNow

ServiceNow is a cloud platform for IT service management (ITSM), IT operations and enterprise workflows, used to manage incidents, problems, changes, service requests, the CMDB and knowledge.

The ServiceNow REST APIs (Table, Service Catalog, CMDB Instance, Attachment, Aggregate and Import Set APIs) give access to the records of an instance: create, read, update and delete records in any table, order catalog items, manage configuration items and load data through import sets.

With Declarative Webhooks you can escalate Salesforce Cases to ServiceNow incidents, keep comments, status and resolution in sync, order catalog items from Salesforce, look up users and groups, and receive ServiceNow incident, change and request events to update Salesforce records.

Documentation URL: https://www.servicenow.com/docs/bundle/zurich-api-reference/page/build/applications/concept/api-rest.html

Installable Elements              (No items selected)



Base Elements

These elements are required for the templates below to work

  • Named Credential, External Credential and permission set used by all ServiceNow templates to call your instance with Basic authentication.

Incidents

Create, update, resolve and close incidents, add comments and work notes, and look incidents up by number.

  • Retrieves incident records (incident table) matching an encoded query.

  • Retrieves a incident record (incident table) by sys_id.

  • Finds a incident by its number.

  • Creates a incident record (incident table).

  • Updates fields of a incident record (incident table).

  • Deletes a incident record (incident table).

  • Adds a customer-visible comment (Additional comments) to an incident.

  • Adds an internal work note to an incident.

  • Resolves an incident with a resolution code and notes.

  • Closes an incident.

  • Cancels an incident.

  • Assigns an incident to a group and/or a user.

  • Lists the incidents of a caller, identified by email address, newest first.

Service Requests

Order Service Catalog items and manage requests, requested items and catalog tasks.

  • Retrieves request records (sc_request table) matching an encoded query.

  • Retrieves a request record (sc_request table) by sys_id.

  • Finds a request by its number.

  • Creates a request record (sc_request table).

  • Updates fields of a request record (sc_request table).

  • Deletes a request record (sc_request table).

  • Retrieves requested item records (sc_req_item table) matching an encoded query.

  • Retrieves a requested item record (sc_req_item table) by sys_id.

  • Finds a requested item by its number.

  • Creates a requested item record (sc_req_item table).

  • Updates fields of a requested item record (sc_req_item table).

  • Deletes a requested item record (sc_req_item table).

  • Retrieves catalog task records (sc_task table) matching an encoded query.

  • Retrieves a catalog task record (sc_task table) by sys_id.

  • Finds a catalog task by its number.

  • Creates a catalog task record (sc_task table).

  • Updates fields of a catalog task record (sc_task table).

  • Deletes a catalog task record (sc_task table).

  • Lists the Service Catalogs the integration user can access.

  • Lists or searches Service Catalog items.

  • Retrieves a catalog item with its variables (the questions to answer when ordering it).

  • Orders a Service Catalog item immediately, creating a request (REQ) and requested item (RITM).

Changes

Create and manage change requests and change tasks.

  • Retrieves change request records (change_request table) matching an encoded query.

  • Retrieves a change request record (change_request table) by sys_id.

  • Finds a change request by its number.

  • Creates a change request record (change_request table).

  • Updates fields of a change request record (change_request table).

  • Deletes a change request record (change_request table).

  • Retrieves change task records (change_task table) matching an encoded query.

  • Retrieves a change task record (change_task table) by sys_id.

  • Finds a change task by its number.

  • Creates a change task record (change_task table).

  • Updates fields of a change task record (change_task table).

  • Deletes a change task record (change_task table).

Problems

Create and manage problems.

  • Retrieves problem records (problem table) matching an encoded query.

  • Retrieves a problem record (problem table) by sys_id.

  • Finds a problem by its number.

  • Creates a problem record (problem table).

  • Updates fields of a problem record (problem table).

  • Deletes a problem record (problem table).

Inbound Webhooks

Receive ServiceNow record events in Salesforce: inbound call templates, webhook secret storage and a verification class.

  • Custom Metadata storing the secret that ServiceNow sends in the X-Webhook-Secret header. Used by the verification class below.

  • Custom Apex class used by the inbound templates below to verify the X-Webhook-Secret header sent by ServiceNow. It uses the Custom Metadata above.

  • Receives incident created and updated events sent by a ServiceNow business rule.

  • Receives change request created and updated events sent by a ServiceNow business rule.

  • Receives requested item (RITM) created and updated events sent by a ServiceNow business rule.

Users and Groups

Manage users, groups and group memberships, and find users by email.

  • Retrieves user records (sys_user table) matching an encoded query.

  • Retrieves a user record (sys_user table) by sys_id.

  • Creates a user record (sys_user table).

  • Updates fields of a user record (sys_user table).

  • Deletes a user record (sys_user table).

  • Retrieves group records (sys_user_group table) matching an encoded query.

  • Retrieves a group record (sys_user_group table) by sys_id.

  • Creates a group record (sys_user_group table).

  • Updates fields of a group record (sys_user_group table).

  • Deletes a group record (sys_user_group table).

  • Retrieves group member records (sys_user_grmember table) matching an encoded query.

  • Retrieves a group member record (sys_user_grmember table) by sys_id.

  • Creates a group member record (sys_user_grmember table).

  • Deletes a group member record (sys_user_grmember table).

  • Finds a user by email address, e.g. to get the sys_id of a caller.

  • Finds a user by user ID (user_name).

  • Returns the integration user. Useful to test the connection.

  • Finds a group by name, e.g. to get the sys_id of an assignment group.

Companies and Locations

Manage companies (customers and vendors) and locations.

  • Retrieves company records (core_company table) matching an encoded query.

  • Retrieves a company record (core_company table) by sys_id.

  • Creates a company record (core_company table).

  • Updates fields of a company record (core_company table).

  • Deletes a company record (core_company table).

  • Retrieves location records (cmn_location table) matching an encoded query.

  • Retrieves a location record (cmn_location table) by sys_id.

  • Creates a location record (cmn_location table).

  • Updates fields of a location record (cmn_location table).

  • Deletes a location record (cmn_location table).

CMDB

Read configuration items and create, update and relate them with the CMDB Instance API.

  • Retrieves configuration item records (cmdb_ci table) matching an encoded query.

  • Retrieves a configuration item record (cmdb_ci table) by sys_id.

  • Lists the configuration items of a CMDB class.

  • Retrieves a configuration item with its attributes and its inbound and outbound relations.

  • Creates a configuration item through the CMDB Instance API (Identification and Reconciliation rules apply).

  • Updates attributes of a configuration item through the CMDB Instance API.

  • Adds outbound relations from a configuration item to other CIs.

Knowledge

Create, update and search knowledge articles.

  • Retrieves knowledge article records (kb_knowledge table) matching an encoded query.

  • Retrieves a knowledge article record (kb_knowledge table) by sys_id.

  • Finds a knowledge article by its number.

  • Creates a knowledge article record (kb_knowledge table).

  • Updates fields of a knowledge article record (kb_knowledge table).

  • Deletes a knowledge article record (kb_knowledge table).

Attachments

List, read and delete record attachments.

  • Lists the attachments of a record, with their download links.

  • Retrieves the metadata (file name, size, type, download link) of an attachment.

  • Deletes an attachment.

Any Table

Generic Table API, Aggregate (statistics), journal entries and Import Set calls that work with any table, including custom tables.

  • Retrieves records from any table matching an encoded query.

  • Retrieves a record from any table by sys_id.

  • Creates a record in any table.

  • Updates fields of a record in any table.

  • Deletes a record from any table.

  • Counts the records of a table matching an encoded query (Aggregate API).

  • Counts the records of a table grouped by a field, e.g. open incidents by priority (Aggregate API).

  • Lists the comments and work notes of a record, newest first.

  • Inserts a row into an import set table; its transform maps run immediately to create or update target records.

  • Inserts several rows into an import set table in one call; the transform runs asynchronously.

  • Retrieves an import set row and the result of its transform.

In order to install this in your org, you need to access the library from the Declarative Webhooks app in your Salesforce org, Declarative Webhooks Library tab.