ServiceNow

Use ServiceNow in Sim to create, read, update, and delete records in your ServiceNow instance. Operations accept a table name, such as an incident, task, change-request, or user table, and the fields required by that operation.

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

Create ServiceNow 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

Read ServiceNow Records

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

Update ServiceNow 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

Delete ServiceNow 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

Aggregate ServiceNow Records

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, written as aggregate^field^operator^value and comma-separated for more than one (e.g., "count^priority^>^3" or "count^state^=^1,avg^priority^>^3")
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)

List ServiceNow 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)

Download ServiceNow 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

Upload ServiceNow 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

Create ServiceNow Incident

Create an incident in ServiceNow. Reference fields (caller, assignment group, assigned to, configuration item) take sys_ids unless input display value is enabled.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
shortDescriptionstringYesShort description — the one-line summary of the incident.
descriptionstringNoDetailed description of the incident.
callerIdstringNoCaller (caller_id) — sys_id of the sys_user who reported the incident. Use Find ServiceNow User to resolve an email address to a sys_id.
categorystringNoCategory (e.g., inquiry, software, hardware, network, database).
subcategorystringNoSubcategory, valid for the selected category.
impactstringNoImpact: 1 (High), 2 (Medium), or 3 (Low).
urgencystringNoUrgency: 1 (High), 2 (Medium), or 3 (Low).
prioritystringNoPriority 1-5 (1 Critical … 5 Planning). Normally derived from impact and urgency, so prefer setting those.
statestringNoIncident state coded value. Base system: 1=New, 2=In Progress, 3=On Hold, 6=Resolved, 7=Closed, 8=Canceled. Defaults to New.
assignmentGroupstringNoAssignment group (assignment_group) — sys_id of the sys_user_group.
assignedTostringNoAssigned to (assigned_to) — sys_id of the sys_user.
cmdbCistringNoConfiguration item (cmdb_ci) — sys_id of the affected CI.
businessServicestringNoService (business_service) — sys_id of the affected business service.
contactTypestringNoChannel (contact_type), e.g., email, phone, self-service, chat.
workNotesstringNoInternal work note to record on creation.
commentsstringNoCustomer-visible additional comment to record on creation.
additionalFieldsjsonNoAny other ServiceNow fields to set, as a JSON object of raw column names (e.g., {"correlation_id": "abc-123", "u_custom": "x"}). Merged last, so it overrides the named parameters.
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).
inputDisplayValuebooleanNoSet to true to write display names into reference fields (e.g., assigned_to: "Beth Anglin") and let ServiceNow resolve them to sys_ids. Defaults to false, meaning reference fields must be sys_ids. Note that true also reinterprets date and time values in the requesting user's timezone rather than GMT.

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

Get ServiceNow Incident

Retrieve a single ServiceNow incident by number (e.g., INC0010001) or sys_id. Reference fields are returned with both their sys_id and their label by default.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
sysIdstringNoRecord sys_id. Provide either this or the record number.
numberstringNoRecord number (e.g., INC0010001). Provide either this or the sys_id.
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

List ServiceNow Incidents

Search ServiceNow incidents by state, priority, assignment, caller, or text. All filters are ANDed together.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
searchTextstringNoText to match against the incident short description using the ServiceNow LIKE operator, which matches anywhere in the field.
statestringNoIncident state coded value. Base system: 1=New, 2=In Progress, 3=On Hold, 6=Resolved, 7=Closed, 8=Canceled.
prioritystringNoPriority coded value 1-5 (1 Critical … 5 Planning).
assignmentGroupstringNosys_id of the assignment group.
assignedTostringNosys_id of the assigned user.
callerIdstringNosys_id of the caller.
activestringNoRestrict to active ("true") or inactive ("false") incidents.
querystringNoAdditional ServiceNow encoded query, ANDed with the other filters (e.g., "opened_at>=javascript:gs.beginningOfLastMonth()").
limitnumberNoMaximum number of records to return (sysparm_limit). Omitting it sends no limit at all, and the Table API then applies its own default of 10,000 records, so always set it to what you will actually read.
offsetnumberNoNumber of records to skip for pagination (sysparm_offset).
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

Update ServiceNow Incident

Update fields on an existing ServiceNow incident. Only the fields you supply are changed. Reference fields take sys_ids unless input display value is enabled.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
sysIdstringYessys_id of the record to update. If you only have the record number, look it up first (for example with Get ServiceNow Incident).
shortDescriptionstringNoNew short description.
descriptionstringNoNew detailed description.
statestringNoIncident state coded value. Base system: 1=New, 2=In Progress, 3=On Hold, 6=Resolved, 7=Closed, 8=Canceled. Use Resolve or Close ServiceNow Incident for those transitions so the resolution fields are populated.
impactstringNoImpact: 1 (High), 2 (Medium), or 3 (Low).
urgencystringNoUrgency: 1 (High), 2 (Medium), or 3 (Low).
prioritystringNoPriority coded value 1-5 (1 Critical … 5 Planning).
categorystringNoCategory.
subcategorystringNoSubcategory.
assignmentGroupstringNoAssignment group (assignment_group) — sys_id of the sys_user_group.
assignedTostringNoAssigned to (assigned_to) — sys_id of the sys_user.
cmdbCistringNoConfiguration item (cmdb_ci) — sys_id of the affected CI.
workNotesstringNoInternal work note to append.
commentsstringNoCustomer-visible additional comment to append.
additionalFieldsjsonNoAny other ServiceNow fields to set, as a JSON object of raw column names (e.g., {"correlation_id": "abc-123", "u_custom": "x"}). Merged last, so it overrides the named parameters.
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).
inputDisplayValuebooleanNoSet to true to write display names into reference fields (e.g., assigned_to: "Beth Anglin") and let ServiceNow resolve them to sys_ids. Defaults to false, meaning reference fields must be sys_ids. Note that true also reinterprets date and time values in the requesting user's timezone rather than GMT.

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

Resolve ServiceNow Incident

Move a ServiceNow incident to Resolved (state 6) with a resolution code and resolution notes.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
sysIdstringYessys_id of the record to update. If you only have the record number, look it up first (for example with Get ServiceNow Incident).
closeCodestringYesResolution code (close_code). This is a choice field whose values are configured per instance — read the choice list on your incident table and pass one of its values.
closeNotesstringYesResolution notes (close_notes) documenting how the incident was resolved.
workNotesstringNoAdditional internal work note to append.
additionalFieldsjsonNoAny other ServiceNow fields to set, as a JSON object of raw column names (e.g., {"correlation_id": "abc-123", "u_custom": "x"}). Merged last, so it overrides the named parameters.
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).
inputDisplayValuebooleanNoSet to true to write display names into reference fields (e.g., assigned_to: "Beth Anglin") and let ServiceNow resolve them to sys_ids. Defaults to false, meaning reference fields must be sys_ids. Note that true also reinterprets date and time values in the requesting user's timezone rather than GMT.

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

Close ServiceNow Incident

Move a ServiceNow incident to Closed (state 7) with a resolution code and resolution notes. Which roles may close an incident is instance-configurable, so the credential may need elevated rights.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
sysIdstringYessys_id of the record to update. If you only have the record number, look it up first (for example with Get ServiceNow Incident).
closeCodestringYesResolution code (close_code). This is a choice field whose values are configured per instance — read the choice list on your incident table and pass one of its values.
closeNotesstringYesResolution notes (close_notes) documenting how the incident was resolved.
workNotesstringNoAdditional internal work note to append.
additionalFieldsjsonNoAny other ServiceNow fields to set, as a JSON object of raw column names (e.g., {"correlation_id": "abc-123", "u_custom": "x"}). Merged last, so it overrides the named parameters.
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).
inputDisplayValuebooleanNoSet to true to write display names into reference fields (e.g., assigned_to: "Beth Anglin") and let ServiceNow resolve them to sys_ids. Defaults to false, meaning reference fields must be sys_ids. Note that true also reinterprets date and time values in the requesting user's timezone rather than GMT.

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

Add ServiceNow Incident Comment

Append an internal work note or a customer-visible additional comment to a ServiceNow incident. Both are journal fields, so the text is appended rather than replacing earlier entries.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
sysIdstringYessys_id of the record to update. If you only have the record number, look it up first (for example with Get ServiceNow Incident).
commentstringYesText to append to the journal field.
commentFieldstringNoWhich journal field to write to: "work_notes" for an internal note (default) or "comments" for a customer-visible additional comment.
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).
inputDisplayValuebooleanNoSet to true to write display names into reference fields (e.g., assigned_to: "Beth Anglin") and let ServiceNow resolve them to sys_ids. Defaults to false, meaning reference fields must be sys_ids. Note that true also reinterprets date and time values in the requesting user's timezone rather than GMT.

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

Create ServiceNow Change Request

Create a change request in ServiceNow. Reference fields (assignment group, assigned to, requested by, configuration item) take sys_ids unless input display value is enabled.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
shortDescriptionstringYesShort description — the one-line summary of the change.
descriptionstringNoDetailed description of the change.
typestringNoChange type: "normal", "standard", or "emergency".
categorystringNoChange category.
riskstringNoRisk coded value. The choice list is configured per instance.
impactstringNoImpact: 1 (High), 2 (Medium), or 3 (Low).
prioritystringNoPriority coded value 1-5 (1 Critical … 5 Planning).
assignmentGroupstringNoAssignment group (assignment_group) — sys_id of the sys_user_group.
assignedTostringNoAssigned to (assigned_to) — sys_id of the sys_user.
requestedBystringNoRequested by (requested_by) — sys_id of the sys_user.
cmdbCistringNoConfiguration item (cmdb_ci) — sys_id of the CI being changed.
startDatestringNoPlanned start date (start_date) as "YYYY-MM-DD HH:mm:ss" in UTC.
endDatestringNoPlanned end date (end_date) as "YYYY-MM-DD HH:mm:ss" in UTC.
justificationstringNoJustification for making the change.
implementationPlanstringNoImplementation plan.
backoutPlanstringNoBackout plan.
testPlanstringNoTest plan.
additionalFieldsjsonNoAny other ServiceNow fields to set, as a JSON object of raw column names (e.g., {"correlation_id": "abc-123", "u_custom": "x"}). Merged last, so it overrides the named parameters.
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).
inputDisplayValuebooleanNoSet to true to write display names into reference fields (e.g., assigned_to: "Beth Anglin") and let ServiceNow resolve them to sys_ids. Defaults to false, meaning reference fields must be sys_ids. Note that true also reinterprets date and time values in the requesting user's timezone rather than GMT.

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

Get ServiceNow Change Request

Retrieve a single ServiceNow change request by number (e.g., CHG0030001) or sys_id. Reference fields are returned with both their sys_id and their label by default.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
sysIdstringNoRecord sys_id. Provide either this or the record number.
numberstringNoRecord number (e.g., INC0010001). Provide either this or the sys_id.
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

List ServiceNow Change Requests

Search ServiceNow change requests by state, type, risk, assignment, or text. All filters are ANDed together.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
searchTextstringNoText to match against the change short description using the ServiceNow LIKE operator, which matches anywhere in the field.
statestringNoChange state coded value. Base system: -5=New, -4=Assess, -3=Authorize, -2=Scheduled, -1=Implement, 0=Review, 3=Closed, 4=Canceled.
typestringNoChange type: "normal", "standard", or "emergency".
riskstringNoRisk coded value. The choice list is configured per instance.
assignmentGroupstringNosys_id of the assignment group.
assignedTostringNosys_id of the assigned user.
activestringNoRestrict to active ("true") or inactive ("false") change requests.
querystringNoAdditional ServiceNow encoded query, ANDed with the other filters (e.g., "opened_at>=javascript:gs.beginningOfLastMonth()").
limitnumberNoMaximum number of records to return (sysparm_limit). Omitting it sends no limit at all, and the Table API then applies its own default of 10,000 records, so always set it to what you will actually read.
offsetnumberNoNumber of records to skip for pagination (sysparm_offset).
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

Update ServiceNow Change Request

Update fields on an existing ServiceNow change request. Only the fields you supply are changed. Use Move ServiceNow Change State for state transitions.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
sysIdstringYessys_id of the record to update. If you only have the record number, look it up first (for example with Get ServiceNow Incident).
shortDescriptionstringNoNew short description.
descriptionstringNoNew detailed description.
statestringNoChange state coded value. Base system: -5=New, -4=Assess, -3=Authorize, -2=Scheduled, -1=Implement, 0=Review, 3=Closed, 4=Canceled.
riskstringNoRisk coded value. The choice list is configured per instance.
impactstringNoImpact: 1 (High), 2 (Medium), or 3 (Low).
prioritystringNoPriority coded value 1-5 (1 Critical … 5 Planning).
assignmentGroupstringNoAssignment group (assignment_group) — sys_id of the sys_user_group.
assignedTostringNoAssigned to (assigned_to) — sys_id of the sys_user.
startDatestringNoPlanned start date (start_date) as "YYYY-MM-DD HH:mm:ss" in UTC.
endDatestringNoPlanned end date (end_date) as "YYYY-MM-DD HH:mm:ss" in UTC.
closeCodestringNoClose code: "successful", "successful_issues", or "unsuccessful". Required when closing a change.
closeNotesstringNoClose notes describing the outcome of the change.
workNotesstringNoInternal work note to append.
additionalFieldsjsonNoAny other ServiceNow fields to set, as a JSON object of raw column names (e.g., {"correlation_id": "abc-123", "u_custom": "x"}). Merged last, so it overrides the named parameters.
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).
inputDisplayValuebooleanNoSet to true to write display names into reference fields (e.g., assigned_to: "Beth Anglin") and let ServiceNow resolve them to sys_ids. Defaults to false, meaning reference fields must be sys_ids. Note that true also reinterprets date and time values in the requesting user's timezone rather than GMT.

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

Move ServiceNow Change State

Move a ServiceNow change request to another state. Base-system change model states are -5=New, -4=Assess, -3=Authorize, -2=Scheduled, -1=Implement, 0=Review, 3=Closed, 4=Canceled. The state machine rejects transitions whose conditions are not met.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
sysIdstringYessys_id of the record to update. If you only have the record number, look it up first (for example with Get ServiceNow Incident).
statestringYesTarget state coded value: -5 (New), -4 (Assess), -3 (Authorize), -2 (Scheduled), -1 (Implement), 0 (Review), 3 (Closed), or 4 (Canceled).
closeCodestringNoClose code, required when moving to Closed (3): "successful", "successful_issues", or "unsuccessful".
closeNotesstringNoClose notes describing the outcome of the change.
workNotesstringNoInternal work note explaining the transition.
additionalFieldsjsonNoAny other ServiceNow fields to set, as a JSON object of raw column names (e.g., {"correlation_id": "abc-123", "u_custom": "x"}). Merged last, so it overrides the named parameters.
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).
inputDisplayValuebooleanNoSet to true to write display names into reference fields (e.g., assigned_to: "Beth Anglin") and let ServiceNow resolve them to sys_ids. Defaults to false, meaning reference fields must be sys_ids. Note that true also reinterprets date and time values in the requesting user's timezone rather than GMT.

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

List ServiceNow Change Tasks

List the change tasks belonging to a ServiceNow change request, via the Change Management API. Every field is returned as {value, display_value}, so a reference field carries both its sys_id and its label. This endpoint is not the Table API: the shape is fixed with no display-value option, and the results come back under tasks rather than the records the other list operations use.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
changeSysIdstringYessys_id of the change request whose tasks should be listed.
querystringNoServiceNow encoded query used to filter the tasks (e.g., "active=true^ORDERBYnumber").
orderstringNoField to sort the returned tasks by.
limitnumberNoMaximum number of tasks to return (sysparm_limit). ServiceNow defaults to 500.
offsetnumberNoNumber of tasks to skip for pagination (sysparm_offset).

Output

ParameterTypeDescription
tasksarrayChange tasks, under tasks rather than the records key the Table API list operations use. Each field is an object of the form {value, display_value} — the Change Management API fixes this shape, so unlike those operations there is no display-value setting. parent holds the owning change request.
metadatajsonOperation metadata
recordCountnumberNumber of change tasks returned

Get ServiceNow Change Next States

Read the states a ServiceNow change request can actually move to next, with the instance's own state-to-label map and the conditions each transition still has to meet. Use this instead of assuming the base-system state codes, which a customized change model can change.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
changeSysIdstringYessys_id of the change request. Use Get ServiceNow Change Request to resolve a CHG number to its sys_id.

Output

ParameterTypeDescription
availableStatesarrayEvery state coded value reachable from the change request, including its current state
allowedStatesarrayThe subset of state coded values whose transition currently reports transition_available, meaning the change request already meets that transition conditions
stateLabelsjsonMap of state coded value to the label this instance uses, e.g. {'0': 'Review'}. Read the state model from here rather than assuming the base-system codes
stateTransitionsarrayAvailable transitions, flattened from the per-target-state grouping ServiceNow returns. Empty for type-driven and legacy change requests, which do not report conditions
sys_idstringSys_id of the state transition record on sttrm_state_transition
display_valuestringHuman-readable transition name, e.g. "Implement to Review"
from_statestringState coded value moved from
to_statestringState coded value moved to
transition_availablebooleanWhether the change request can move to this state right now
automatic_transitionbooleanWhether the change request moves to this state automatically
conditionsarrayConditions gating the transition, each with whether it has passed
passedbooleanWhether the change request met this condition
conditionjsonThe condition as {name, description, sys_id}
metadatajsonOperation metadata
transitionCountnumberNumber of transitions returned

List ServiceNow Catalog Items

Browse or search the ServiceNow service catalog. Returns each item with its sys_id, name, description, type, category, and catalogs, which is what Order ServiceNow Catalog Item needs.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
searchTextstringNoText to search for in the catalog items (e.g., "iPhone").
catalogSysIdstringNoRestrict results to a specific catalog, by catalog sys_id.
categorySysIdstringNoRestrict results to a specific category, by category sys_id.
limitnumberNoMaximum number of items to return (sysparm_limit).
offsetnumberNoNumber of items to skip for pagination (sysparm_offset).

Output

ParameterTypeDescription
itemsarrayCatalog items
sys_idstringCatalog item sys_id, used to order the item
namestringCatalog item name
short_descriptionstringShort description
descriptionstringHTML description
typestringItem type, e.g., record_producer or catalog_item
sys_class_namestringItem table
categoryjsonCategory {sys_id, title}
catalogsjsonCatalogs the item belongs to, each {sys_id, title}
picturestringItem picture reference
iconstringItem icon reference
ordernumberDisplay order
pricestringItem price
show_pricebooleanWhether the price is shown
show_quantitybooleanWhether a quantity can be chosen when ordering
content_typestringContent type for content items
urlstringTarget URL for content items
kb_articlestringsys_id of the knowledge article backing the item
metadatajsonOperation metadata
recordCountnumberNumber of catalog items returned

Order ServiceNow Catalog Item

Submit a service catalog request for a catalog item using the Service Catalog API order_now endpoint. Returns the generated request number and sys_id.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
catalogItemSysIdstringYessys_id of the catalog item to order. Use List ServiceNow Catalog Items to find it.
quantitynumberNoQuantity to order. Must not be negative. Defaults to 1.
requestedForstringNosys_id of the sys_user the item is ordered for. Ordering on behalf of another user is governed by the glide.sc.req_for.roles instance properties.
variablesjsonNoName-value pairs for the catalog item variables, as a JSON object (e.g., {"data_plan": "500MB"}). All variables the item marks mandatory must be supplied.

Output

ParameterTypeDescription
sysIdstringSys_id of the order
numberstringNumber of the generated request
requestNumberstringRequest number
requestIdstringSys_id of the order request
tablestringTable name of the request

List ServiceNow Requested Items

List requested items (RITMs) from the ServiceNow Requested Item [sc_req_item] table, optionally scoped to a parent request or a catalog item. To scope by requester, pass an encoded query against the parent request, for example "request.requested_for=<sys_id>".

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
requestSysIdstringNosys_id of the parent request (sc_request) whose items should be listed.
catalogItemSysIdstringNosys_id of the catalog item (cat_item) to filter by.
activestringNoRestrict to active ("true") or inactive ("false") requested items.
querystringNoAdditional ServiceNow encoded query, ANDed with the other filters (e.g., "opened_at>=javascript:gs.beginningOfLastMonth()").
limitnumberNoMaximum number of records to return (sysparm_limit). Omitting it sends no limit at all, and the Table API then applies its own default of 10,000 records, so always set it to what you will actually read.
offsetnumberNoNumber of records to skip for pagination (sysparm_offset).
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

Get ServiceNow Requested Item

Retrieve a single ServiceNow requested item (RITM) by number (e.g., RITM0010001) or sys_id from the Requested Item [sc_req_item] table.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
sysIdstringNoRecord sys_id. Provide either this or the record number.
numberstringNoRecord number (e.g., INC0010001). Provide either this or the sys_id.
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

List ServiceNow Approvals

List approval records from the ServiceNow Approval [sysapproval_approver] table. Defaults to the "requested" state, which is what a user's pending approvals look like.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
approverSysIdstringNosys_id of the approver (sys_user) whose approvals should be listed. Use Find ServiceNow User to resolve an email address to a sys_id.
statestringNoApproval state: "requested" (pending, the default), "approved", or "rejected". Pass an empty string with a custom query to list every state.
approvalForstringNosys_id of the record being approved, matched against the sysapproval reference field.
querystringNoAdditional ServiceNow encoded query, ANDed with the other filters (e.g., "opened_at>=javascript:gs.beginningOfLastMonth()").
limitnumberNoMaximum number of records to return (sysparm_limit). Omitting it sends no limit at all, and the Table API then applies its own default of 10,000 records, so always set it to what you will actually read.
offsetnumberNoNumber of records to skip for pagination (sysparm_offset).
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

Approve or Reject ServiceNow Approval

Approve or reject a ServiceNow approval record by setting its state on the Approval [sysapproval_approver] table.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
approvalSysIdstringYessys_id of the approval record on the sysapproval_approver table. Use List ServiceNow Approvals to find it.
decisionstringYesDecision to record: "approved" or "rejected".
commentsstringNoComment to record alongside the decision. This is a journal field.
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).
inputDisplayValuebooleanNoSet to true to write display names into reference fields (e.g., assigned_to: "Beth Anglin") and let ServiceNow resolve them to sys_ids. Defaults to false, meaning reference fields must be sys_ids. Note that true also reinterprets date and time values in the requesting user's timezone rather than GMT.

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

Search ServiceNow Configuration Items

Search the ServiceNow CMDB for configuration items. Defaults to the base cmdb_ci table, which returns CIs of every class; pass a CI class to scope the search to a subclass such as cmdb_ci_linux_server.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
ciClassstringNoCMDB class (table) to search, e.g., cmdb_ci_linux_server or cmdb_ci_app_server. Defaults to cmdb_ci, which covers every CI class.
namestringNoText to match against the CI name using the ServiceNow LIKE operator, which matches anywhere in the field.
operationalStatusstringNoOperational status coded value (operational_status). The choice list is configured per instance.
querystringNoAdditional ServiceNow encoded query, ANDed with the other filters (e.g., "opened_at>=javascript:gs.beginningOfLastMonth()").
limitnumberNoMaximum number of records to return (sysparm_limit). Omitting it sends no limit at all, and the Table API then applies its own default of 10,000 records, so always set it to what you will actually read.
offsetnumberNoNumber of records to skip for pagination (sysparm_offset).
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

Get ServiceNow Configuration Item

Retrieve a configuration item and its CMDB relationships through the CMDB Instance API. Returns the CI attributes plus its inbound and outbound relations, each carrying the related CI and the relationship type.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
ciClassstringYesCMDB class (table) the CI belongs to, e.g., cmdb_ci_linux_server. Read it from the sys_class_name field returned by Search ServiceNow Configuration Items.
sysIdstringYessys_id of the configuration item to retrieve.

Output

ParameterTypeDescription
attributesjsonData attributes on the CI record. The available attributes depend on the class.
inboundRelationsarrayInbound CI relationships
sys_idstringSys_id of the relationship record on cmdb_rel_ci
targetjsonRelated CI as {value (sys_id), display_value, link}
typejsonRelationship type as {value (sys_id), display_value, link}
outboundRelationsarrayOutbound CI relationships
sys_idstringSys_id of the relationship record on cmdb_rel_ci
targetjsonRelated CI as {value (sys_id), display_value, link}
typejsonRelationship type as {value (sys_id), display_value, link}
metadatajsonOperation metadata
inboundCountnumberNumber of inbound relations
outboundCountnumberNumber of outbound relations

List ServiceNow CI Relationships

List rows from the CI Relationship [cmdb_rel_ci] table for a configuration item. Each row carries the parent CI, the child CI, and the relationship type.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
ciSysIdstringYessys_id of the configuration item whose relationships should be listed.
directionstringNoWhich side of the relationship the CI sits on: "parent", "child", or "both" (default). "both" matches rows where the CI is either the parent or the child.
querystringNoAdditional ServiceNow encoded query, ANDed with the other filters (e.g., "opened_at>=javascript:gs.beginningOfLastMonth()").
limitnumberNoMaximum number of records to return (sysparm_limit). Omitting it sends no limit at all, and the Table API then applies its own default of 10,000 records, so always set it to what you will actually read.
offsetnumberNoNumber of records to skip for pagination (sysparm_offset).
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

Search ServiceNow Knowledge

Search ServiceNow knowledge base articles through the Knowledge Management API. Returns ranked results with a snippet and the article number, which Get ServiceNow Knowledge Article accepts to fetch the full body.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
querystringNoText to search for across knowledge articles.
filterstringNoEncoded query used to filter the results, against the Knowledge [kb_knowledge] table (e.g., "workflow_state=published").
knowledgeBaseSysIdsstringNoComma-separated knowledge base sys_ids (from kb_knowledge_base) to restrict results to.
languagestringNoComma-separated ISO 639-1 language codes to restrict results to, or "all". Defaults to the session language.
fieldsstringNoComma-separated kb_knowledge fields to include in each result (e.g., workflow_state,kb_category).
limitnumberNoMaximum number of articles to return. ServiceNow defaults to 30.
offsetnumberNoNumber of articles to skip for pagination.

Output

ParameterTypeDescription
articlesarrayMatching knowledge articles, sorted in descending order by relevance score
idstringTable-prefixed article identifier, e.g. "kb_knowledge:9e528db1...". Get ServiceNow Knowledge Article takes a bare sys_id or KB number, so pass number or the portion after the colon rather than this value as-is
numberstringKnowledge article number
titlestringArticle title (short description)
snippetstringSmall excerpt of the article text
linkstringLink to the article
scorenumberRelevancy score
ranknumberSearch rank of the article for this search
fieldsjsonRequested kb_knowledge fields, each {name, label, type, value, display_value}
metadatajsonOperation metadata
recordCountnumberNumber of articles returned
totalCountnumberTotal number of available articles reported by ServiceNow

Get ServiceNow Knowledge Article

Retrieve the full content of a ServiceNow knowledge article by sys_id or KB number through the Knowledge Management API.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
articleIdstringYessys_id or KB number of the knowledge article (e.g., KB0000011).
fieldsstringNoComma-separated kb_knowledge fields to include alongside the article content (e.g., workflow_state,author).
languagestringNoTwo-letter ISO 639-1 language code. Only applies when the article is addressed by KB number and a translation exists.
updateViewbooleanNoSet to true to increment the article view count and record an entry in the Knowledge Use [kb_use] table.

Output

ParameterTypeDescription
sysIdstringArticle sys_id on kb_knowledge
numberstringKnowledge article number
titlestringArticle title (short description)
contentstringFull HTML content of the article
fieldsjsonRequested kb_knowledge fields, each {name, label, type, value, display_value}
attachmentsarrayArticle attachments, returned only when display_attachments is active on the article
sys_idstringAttachment sys_id
file_namestringAttachment file name
size_bytesstringAttachment size in bytes
statestringAttachment state: available, available_conditionally, not_available, or pending

Find ServiceNow User

Look up ServiceNow users by email, user name, or display name. Use this to resolve the sys_id needed by reference fields such as caller_id, assigned_to, and approver.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
emailstringNoExact email address to match.
userNamestringNoExact user name (user_name) to match.
namestringNoText to match against the display name using the ServiceNow LIKE operator, which matches anywhere in the field.
activestringNoRestrict to active ("true") or inactive ("false") users.
querystringNoAdditional ServiceNow encoded query, ANDed with the other filters (e.g., "opened_at>=javascript:gs.beginningOfLastMonth()").
limitnumberNoMaximum number of records to return (sysparm_limit). Omitting it sends no limit at all, and the Table API then applies its own default of 10,000 records, so always set it to what you will actually read.
offsetnumberNoNumber of records to skip for pagination (sysparm_offset).
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

List ServiceNow Group Members

List the members of a ServiceNow group from the Group Member [sys_user_grmember] table. Each row links a user to a group, so use it to find who can be assigned work for an assignment group.

Input

ParameterTypeRequiredDescription
instanceUrlstringYesServiceNow instance URL (e.g., https://instance.service-now.com)
usernamestringYesServiceNow username
passwordstringYesServiceNow password
groupSysIdstringNosys_id of the sys_user_group whose members should be listed.
groupNamestringNoExact group name, resolved against the referenced group record. Provide this or the group sys_id.
querystringNoAdditional ServiceNow encoded query, ANDed with the other filters (e.g., "opened_at>=javascript:gs.beginningOfLastMonth()").
limitnumberNoMaximum number of records to return (sysparm_limit). Omitting it sends no limit at all, and the Table API then applies its own default of 10,000 records, so always set it to what you will actually read.
offsetnumberNoNumber of records to skip for pagination (sysparm_offset).
fieldsstringNoComma-separated list of fields to return (e.g., number,short_description,state). Returns all fields when omitted.
displayValuestringNoHow reference and choice fields are returned: "all" (default — both the sys_id and the label, as {value, display_value}), "true" (labels only), or "false" (raw sys_ids and coded values only).

Output

ParameterTypeDescription
recordjsonSingle ServiceNow record
recordsjsonArray of ServiceNow records
successbooleanOperation success status
metadatajsonOperation metadata
resultjsonAggregate result (stats or grouped array)
countnumberAggregate matching record count
attachmentsjsonAttachment metadata list — record attachments (sys_id, file_name, content_type, download_link) or knowledge article attachments (sys_id, file_name, size_bytes, state)
filefileDownloaded attachment file
contentstringBase64-encoded downloaded file content, or the HTML body of a knowledge article
attachmentjsonUploaded attachment metadata
tasksjsonChange tasks belonging to a change request. Unlike the Table API operations, the Change Management API always returns every field as {value, display_value} regardless of the display value setting
itemsjsonService catalog items
articlesjsonKnowledge article search results
attributesjsonConfiguration item attributes
inboundRelationsjsonInbound CI relationships
outboundRelationsjsonOutbound CI relationships
sysIdstringsys_id returned by the operation
numberstringRecord number returned by the operation
requestNumberstringCatalog request number
requestIdstringsys_id of the catalog request
tablestringTable the catalog request was created on
availableStatesjsonState coded values a change request can reach, including its current state
allowedStatesjsonState coded values whose transition conditions the change request already meets
stateLabelsjsonThis instance's own map of state coded value to label, e.g. {'0': 'Review'}
stateTransitionsjson[{sys_id, display_value, from_state, to_state, transition_available, automatic_transition, conditions}]
titlestringKnowledge article title
fieldsjsonRequested knowledge article field values

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