ServiceNow

ServiceNow is a powerful cloud platform designed to streamline and automate IT service management (ITSM), workflows, and business processes across your organization. ServiceNow enables you to manage incidents, requests, tasks, users, and more using its extensive API.

With ServiceNow, you can:

  • Automate IT workflows: Create, read, update, and delete records in any ServiceNow table, such as incidents, tasks, change requests, and users.
  • Integrate systems: Connect ServiceNow with your other tools and processes for seamless automation.
  • Maintain a single source of truth: Keep all your service and operations data organized and accessible.
  • Drive operational efficiency: Reduce manual work and improve service quality with customizable workflows and automation.

In Sim, the ServiceNow integration enables your agents to interact directly with your ServiceNow instance as part of their workflows. Agents can create, read, update, or delete records in any ServiceNow table and leverage ticket or user data for sophisticated automation and decision-making. This integration bridges your workflow automation and IT operations, empowering your agents to manage service requests, incidents, users, and assets without manual intervention. By connecting Sim with ServiceNow, you can automate service management tasks, improve response times, and ensure consistent, secure access to your organization's vital service data.

Usage Instructions

Integrate ServiceNow into your workflow. Create, read, update, and delete records in any ServiceNow table including incidents, tasks, change requests, users, and more.

Actions

servicenow_create_record

Create a new record in a ServiceNow table

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
tableNamestringYesTable name (e.g., incident, task, sys_user)
fieldsjsonYesFields to set on the record as JSON object (e.g., {"short_description": "Issue title", "priority": "1"})

Output

ParameterTypeDescription
recordjsonCreated ServiceNow record with sys_id and other fields
metadatajsonOperation metadata

servicenow_read_record

Read records from a ServiceNow table

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
tableNamestringYesTable name (e.g., incident, task, sys_user, change_request)
sysIdstringNoSpecific record sys_id (e.g., 6816f79cc0a8016401c5a33be04be441)
numberstringNoRecord number (e.g., INC0010001)
querystringNoEncoded query string (e.g., "active=true^priority=1")
limitnumberNoMaximum number of records to return (e.g., 10, 50, 100)
offsetnumberNoNumber of records to skip for pagination (e.g., 0, 10, 20)
fieldsstringNoComma-separated list of fields to return (e.g., sys_id,number,short_description,state)
displayValuestringNoReturn display values for reference fields: "true" (display only), "false" (sys_id only), or "all" (both)

Output

ParameterTypeDescription
recordsarrayArray of ServiceNow records
metadatajsonOperation metadata

servicenow_update_record

Update an existing record in a ServiceNow table

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
tableNamestringYesTable name (e.g., incident, task, sys_user, change_request)
sysIdstringYesRecord sys_id to update (e.g., 6816f79cc0a8016401c5a33be04be441)
fieldsjsonYesFields to update as JSON object (e.g., {"state": "2", "priority": "1"})

Output

ParameterTypeDescription
recordjsonUpdated ServiceNow record
metadatajsonOperation metadata

servicenow_delete_record

Delete a record from a ServiceNow table

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
tableNamestringYesTable name (e.g., incident, task, sys_user, change_request)
sysIdstringYesRecord sys_id to delete (e.g., 6816f79cc0a8016401c5a33be04be441)

Output

ParameterTypeDescription
successbooleanWhether the deletion was successful
metadatajsonOperation metadata

servicenow_aggregate

Compute aggregate statistics (count, sum, average, min, max, group by) over a ServiceNow table

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
tableNamestringYesTable name (e.g., incident, change_request, task)
querystringNoEncoded query string to filter records before aggregating (e.g., "active=true")
countbooleanNoReturn the count of matching records
groupBystringNoComma-separated fields to group results by (e.g., category,priority)
avgFieldsstringNoComma-separated numeric fields to average (e.g., reassignment_count)
sumFieldsstringNoComma-separated numeric fields to sum
minFieldsstringNoComma-separated fields to compute the minimum of
maxFieldsstringNoComma-separated fields to compute the maximum of
havingstringNoFilter on aggregate results (e.g., "count>5")
displayValuestringNoReturn display values for grouped reference fields: "true", "false", or "all"

Output

ParameterTypeDescription
resultjsonAggregate result. Ungrouped: {stats: {count, sum, avg, min, max}}. Grouped: array of {stats, groupby_fields}.
countnumberTotal matching record count (only present for ungrouped count queries)
metadatajsonOperation metadata (grouped, groupCount)

servicenow_list_attachments

List the attachments on a ServiceNow record

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
tableNamestringYesTable that owns the record (e.g., incident, change_request)
recordSysIdstringYessys_id of the record whose attachments should be listed
limitnumberNoMaximum number of attachments to return

Output

ParameterTypeDescription
attachmentsarrayAttachment metadata records
sys_idstringAttachment sys_id
file_namestringFile name
content_typestringMIME type
size_bytesstringFile size in bytes
download_linkstringDirect download URL for the file
metadatajsonOperation metadata (recordCount)

servicenow_download_attachment

Download an attachment file from ServiceNow by its sys_id

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
attachmentSysIdstringYessys_id of the attachment to download (from List Attachments)

Output

ParameterTypeDescription
filefileDownloaded attachment stored in execution files
contentstringBase64 encoded file content

servicenow_upload_attachment

Attach a file to a ServiceNow record

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com\)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
tableNamestringYesTable that owns the record (e.g., incident, change_request)
recordSysIdstringYessys_id of the record to attach the file to
fileNamestringYesName to give the uploaded file (e.g., logs.txt)
filefileNoFile to upload (UserFile object)

Output

ParameterTypeDescription
attachmentjsonCreated attachment metadata (sys_id, file_name, content_type, download_link)
metadatajsonOperation metadata

Triggers

A Trigger is a block that starts a workflow when an event happens in this service.

ServiceNow Change Request Created

Trigger workflow when a new change request is created in ServiceNow

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your ServiceNow Business Rule as Bearer token or X-Sim-Webhook-Secret.
tableNamestringNoOptionally filter to a specific ServiceNow table

Output

ParameterTypeDescription
sysIdstringUnique system ID of the record
numberstringRecord number (e.g., INC0010001, CHG0010001)
tableNamestringServiceNow table name
shortDescriptionstringShort description of the record
descriptionstringFull description of the record
statestringCurrent state of the record
prioritystringPriority level (1=Critical, 2=High, 3=Moderate, 4=Low, 5=Planning)
assignedTostringUser assigned to this record
assignmentGroupstringGroup assigned to this record
createdBystringUser who created the record
createdOnstringWhen the record was created (ISO 8601)
updatedBystringUser who last updated the record
updatedOnstringWhen the record was last updated (ISO 8601)
typestringChange type (Normal, Standard, Emergency)
riskstringRisk level of the change
impactstringImpact level of the change
approvalstringApproval status
startDatestringPlanned start date
endDatestringPlanned end date
categorystringChange category
recordjsonFull change request record data

ServiceNow Change Request Updated

Trigger workflow when a change request is updated in ServiceNow

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your ServiceNow Business Rule as Bearer token or X-Sim-Webhook-Secret.
tableNamestringNoOptionally filter to a specific ServiceNow table

Output

ParameterTypeDescription
sysIdstringUnique system ID of the record
numberstringRecord number (e.g., INC0010001, CHG0010001)
tableNamestringServiceNow table name
shortDescriptionstringShort description of the record
descriptionstringFull description of the record
statestringCurrent state of the record
prioritystringPriority level (1=Critical, 2=High, 3=Moderate, 4=Low, 5=Planning)
assignedTostringUser assigned to this record
assignmentGroupstringGroup assigned to this record
createdBystringUser who created the record
createdOnstringWhen the record was created (ISO 8601)
updatedBystringUser who last updated the record
updatedOnstringWhen the record was last updated (ISO 8601)
typestringChange type (Normal, Standard, Emergency)
riskstringRisk level of the change
impactstringImpact level of the change
approvalstringApproval status
startDatestringPlanned start date
endDatestringPlanned end date
categorystringChange category
recordjsonFull change request record data

ServiceNow Incident Created

Trigger workflow when a new incident is created in ServiceNow

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your ServiceNow Business Rule as Bearer token or X-Sim-Webhook-Secret.
tableNamestringNoOptionally filter to a specific ServiceNow table

Output

ParameterTypeDescription
sysIdstringUnique system ID of the record
numberstringRecord number (e.g., INC0010001, CHG0010001)
tableNamestringServiceNow table name
shortDescriptionstringShort description of the record
descriptionstringFull description of the record
statestringCurrent state of the record
prioritystringPriority level (1=Critical, 2=High, 3=Moderate, 4=Low, 5=Planning)
assignedTostringUser assigned to this record
assignmentGroupstringGroup assigned to this record
createdBystringUser who created the record
createdOnstringWhen the record was created (ISO 8601)
updatedBystringUser who last updated the record
updatedOnstringWhen the record was last updated (ISO 8601)
urgencystringUrgency level (1=High, 2=Medium, 3=Low)
impactstringImpact level (1=High, 2=Medium, 3=Low)
categorystringIncident category
subcategorystringIncident subcategory
callerstringCaller/requester of the incident
resolvedBystringUser who resolved the incident
resolvedAtstringWhen the incident was resolved
closeNotesstringNotes added when the incident was closed
recordjsonFull incident record data

ServiceNow Incident Updated

Trigger workflow when an incident is updated in ServiceNow

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your ServiceNow Business Rule as Bearer token or X-Sim-Webhook-Secret.
tableNamestringNoOptionally filter to a specific ServiceNow table

Output

ParameterTypeDescription
sysIdstringUnique system ID of the record
numberstringRecord number (e.g., INC0010001, CHG0010001)
tableNamestringServiceNow table name
shortDescriptionstringShort description of the record
descriptionstringFull description of the record
statestringCurrent state of the record
prioritystringPriority level (1=Critical, 2=High, 3=Moderate, 4=Low, 5=Planning)
assignedTostringUser assigned to this record
assignmentGroupstringGroup assigned to this record
createdBystringUser who created the record
createdOnstringWhen the record was created (ISO 8601)
updatedBystringUser who last updated the record
updatedOnstringWhen the record was last updated (ISO 8601)
urgencystringUrgency level (1=High, 2=Medium, 3=Low)
impactstringImpact level (1=High, 2=Medium, 3=Low)
categorystringIncident category
subcategorystringIncident subcategory
callerstringCaller/requester of the incident
resolvedBystringUser who resolved the incident
resolvedAtstringWhen the incident was resolved
closeNotesstringNotes added when the incident was closed
recordjsonFull incident record data

ServiceNow Webhook (All Events)

Trigger workflow on any ServiceNow webhook event

Configuration

ParameterTypeRequiredDescription
webhookSecretstringYesRequired. Use the same value in your ServiceNow Business Rule as Bearer token or X-Sim-Webhook-Secret.
tableNamestringNoOptionally filter to a specific ServiceNow table

Output

ParameterTypeDescription
sysIdstringUnique system ID of the record
numberstringRecord number (e.g., INC0010001, CHG0010001)
tableNamestringServiceNow table name
shortDescriptionstringShort description of the record
descriptionstringFull description of the record
statestringCurrent state of the record
prioritystringPriority level (1=Critical, 2=High, 3=Moderate, 4=Low, 5=Planning)
assignedTostringUser assigned to this record
assignmentGroupstringGroup assigned to this record
createdBystringUser who created the record
createdOnstringWhen the record was created (ISO 8601)
updatedBystringUser who last updated the record
updatedOnstringWhen the record was last updated (ISO 8601)
eventTypestringThe type of event that triggered this workflow (e.g., insert, update, delete)
categorystringRecord category
recordjsonFull record data from the webhook payload

On this page