ServiceNow
ServiceNow is a cloud-based platform that automates digital workflows for IT, security, HR, and business operations.
ServiceNow is a leading cloud-based platform for IT service management (ITSM), security operations, and enterprise workflow automation. This connector enables seamless integration between Swimlane Turbine and ServiceNow, allowing users to automate the creation, retrieval, update, and management of incidents, security incidents, service requests, attachments, CMDB records, and custom table data. By leveraging this integration, security and IT teams can orchestrate end-to-end workflows, synchronize critical data, and accelerate response times without manual intervention. The connector empowers organizations to unify security operations and IT processes, reduce response times, and ensure consistent, auditable actions across both platforms.
Prerequisites
Before using the ServiceNow connector, ensure you have the following prerequisites:
- HTTP Basic Authentication setup, requiring:
- URL: The base URL of your ServiceNow instance.
- Username: Your ServiceNow account username with appropriate API permissions.
- Password: The password associated with the specified ServiceNow user.
- OAuth 2.0 Client Credentials authentication, requiring:
- URL: The base URL of your ServiceNow instance.
- Client ID: The client identifier registered in ServiceNow for API access.
- Client Secret: The secret key associated with the client ID.
- Token URL: The endpoint used to obtain OAuth 2.0 tokens from ServiceNow.
- OAuth 2.0 Password authentication, requiring:
- URL: The base URL of your ServiceNow instance.
- Client ID: The client identifier registered in ServiceNow for API access.
- Client Secret: The secret key associated with the client ID.
- OAuth2 Username: The ServiceNow username authorized for OAuth2 authentication.
- OAuth2 Password: The password for the OAuth2 user account.
Capabilities
The ServiceNow connector provides the following capabilities:
- Add Attachment to Table
- Create Incident
- Create Request
- Create Security Incident
- Create Table Row
- Create Ticket
- Delete Custom Endpoint
- Get all Incidents
- Get all Security Incidents
- Get Attachment
- Get Attachment Metadata
- Get Custom Endpoint
- Get Table
- Get Turbine Schema Alerts
- Patch Custom Endpoint ... and so on
Task Setup
Use Add a property under JSON Body option in the action inputs screen, to add additional parameters like state, close notes, etc. for Creating/Updating Incidents or Security Incidents.
Additional Information about Capabilities
- To close an incident from the update incident action, you must provide appropriate values for state, close notes, and close code.
- A ticket can be changed from the update ticket action just by changing the state.
- The Security Incident integrations will fail if the 'Security Incident' table is not created, see the Service Now documentation.
- For ServiceNow Query inputs, you can use this documentation to format your query correctly.
Limitations
Currently the only action able to retrieve Work Notes is the 'Get Journal Field Information' action.
Developer Notes
This plugin was last tested against product version: Paris.
Configurations
HTTP Basic Authentication
Authenticates using username and password
Configuration Parameters
Parameter | Description | Type | Required |
|---|---|---|---|
url | A URL to the target host | string | Required |
username | Username | string | Required |
password | Password | string | Required |
verify_ssl | Verify SSL certificate | boolean | Optional |
http_proxy | A proxy to route requests through | string | Optional |
ca_cert | A Base64 encoded CA certificate to use for SSL verification | string | Optional |
Oauth 2.0 Client Credentials
Authenticates using oauth 2.0 client credentials
Configuration Parameters
Parameter | Description | Type | Required |
|---|---|---|---|
url | A URL to the target host. | string | Required |
token_url | ο»Ώ | string | Required |
client_id | The client ID | string | Required |
client_secret | The client secret. | string | Required |
scope | Permission scopes for this action. | array | Optional |
verify_ssl | Verify SSL certificate | boolean | Optional |
http_proxy | A proxy to route requests through. | string | Optional |
ca_cert | A Base64 encoded CA certificate to use for SSL verification | string | Optional |
Oauth 2.0 Password
Authenticates using oauth 2.0 Password
Configuration Parameters
Parameter | Description | Type | Required |
|---|---|---|---|
url | A URL to the target host. | string | Required |
client_id | The client ID | string | Required |
client_secret | The client secret. | string | Required |
scope | Permission scopes for this action. | array | Optional |
verify_ssl | Verify SSL certificate | boolean | Optional |
http_proxy | A proxy to route requests through. | string | Optional |
oauth2_username | The username for authentication | string | Required |
oauth2_password | The password for authentication | string | Required |
ca_cert | A Base64 encoded CA certificate to use for SSL verification | string | Optional |
Actions
Add Attachment to Table
Add an attachment to a specified ServiceNow table by providing the file name, table name, system ID, and attachment file.
Endpoint
- URL: api/now/attachment/file
- Method: POST
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
attachments | array | Required | File to be uploaded |
attachments.file_name | string | Required | Name of the resource |
attachments.file | string | Required | Parameter for Add Attachment to Table |
parameters.encryption_context | string | Optional | Sys_id of an encryption context record. Specify this parameter to allow only users with the specified encryption context to access the attachment. |
parameters.file_name | string | Required | Parameters for the Add Attachment to Table action |
parameters.table_name | string | Required | Parameters for the Add Attachment to Table action |
parameters.table_sys_id | string | Required | Sys_id of the record in the table specified in table_name that you want to attach the file to. |
headers | object | Optional | HTTP headers for the request |
headers.Content-Type | string | Required | HTTP headers for the request |
Input Example
{"parameters":{"encryption_context":"","file_name":"test","table_name":"incident","table_sys_id":"1c741bd70b2322007518478d83673af3"},"headers":{"Content-type":"application/json"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
result | object | Metadata of the attachment. |
result.size_bytes | string | Size of the attachment in bytes. |
result.file_name | string | Name of the attachment file. |
result.sys_mod_count | string | Number of times the attachment record was updated. |
result.average_image_color | string | Average color of the image, for image attachments. |
result.image_width | string | Width of the image in pixels, for image attachments. |
result.sys_updated_on | string | Date and time the attachment was last updated. |
result.sys_tags | string | Tags applied to the attachment. |
result.table_name | string | Name of the table the attachment is attached to. |
result.sys_id | string | Unique sys_id of the attachment. |
result.image_height | string | Height of the image in pixels, for image attachments. |
result.sys_updated_by | string | User who last updated the attachment. |
result.download_link | string | URL to download the attachment content. |
result.content_type | string | MIME type of the attachment. |
result.sys_created_on | string | Date and time the attachment was uploaded. |
result.size_compressed | string | Compressed size of the attachment in bytes. |
result.compressed | string | Whether the attachment is stored compressed. |
result.state | string | State of the attachment, such as available. |
result.table_sys_id | string | sys_id of the record the attachment is attached to. |
result.chunk_size_bytes | string | Size of each stored chunk of the attachment, in bytes. |
result.hash | string | Hash of the attachment content. |
result.sys_created_by | string | User who uploaded the attachment. |
Output Example
{"status_code":201,"response_headers":{"Server-Timing":"sem_wait;dur=0, sesh_wait;dur=0","Content-Encoding":"gzip","X-Is-Logged-In":"true","X-Transaction-ID":"89f9d2509783","Location":"https://dev130168.service-now.com/api/now/attachment/41f9dad09783111084d57e12115...","X-Content-Type-Options":"nosniff","Pragma":"no-store,no-cache","Cache-Control":"no-cache,no-store,must-revalidate,max-age=-1","Expires":"0","Content-Type":"application/json;charset=UTF-8","Transfer-Encoding":"chunked","Date":"Sat...
Create Incident
Create a new incident record in ServiceNow using the specified JSON body to initiate incident response workflows.
Endpoint
- URL: /api/now/table/incident
- Method: POST
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
parameters.sysparm_display_value | string | Optional | Determines the type of data returned, either the actual values from the database or the display values of the fields. |
parameters.sysparm_exclude_reference_link | boolean | Optional | Flag that indicates whether to exclude Table API links for reference fields. |
parameters.sysparm_fields | string | Optional | Comma-separated list of fields to return in the response. |
parameters.sysparm_input_display_value | boolean | Optional | Flag that indicates whether to set field values using the display value or the actual value. |
parameters.sysparm_view | string | Optional | UI view for which to render the data. Determines the fields returned in the response. |
short_description | string | Optional | Parameter for Create Incident |
assignment_group | string | Optional | Parameter for Create Incident |
urgency | string | Optional | Possible values are 1-High, 2-Medium, 3-Low. |
impact | string | Optional | Possible values are 1-High, 2-Medium, 3-Low. |
description | string | Optional | Parameter for Create Incident |
Input Example
{"parameters":{"sysparm_display_value":"false","sysparm_exclude_reference_link":false,"sysparm_fields":"","sysparm_input_display_value":false,"sysparm_view":""},"json_body":{"short_description":"Unable to connect to office wifi","assignment_group":"287ebd7da9fe198100f92cc8d1d2154e","urgency":"2","impact":"2","description":"testing servicenow"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
result | object | Record returned by ServiceNow. |
result.parent | string | Parent record of this record. |
result.made_sla | string | Whether the record met its service level agreement. |
result.caused_by | string | Change request that caused the incident. |
result.watch_list | string | Comma-separated users who receive notifications about the record. |
result.upon_reject | string | Action to take when the record is rejected. |
result.sys_updated_on | string | Date and time the record was last updated. |
result.child_incidents | string | Number of child incidents linked to this incident. |
result.hold_reason | string | Reason the record is on hold. |
result.origin_table | string | Table of the record this record was created from. |
result.task_effective_number | string | Effective number of the task, used across task types. |
result.approval_history | string | Journal of approval activity on the record. |
result.number | string | Record number, such as INC0010001. |
result.resolved_by | string | User who resolved the record. |
result.sys_updated_by | string | User who last updated the record. |
result.opened_by | object | User who opened the record. |
result.opened_by.link | string | Table API URL of the referenced opened by record. |
result.opened_by.value | string | sys_id of the referenced opened by record. |
result.user_input | string | User input collected for the record. |
result.sys_created_on | string | Date and time the record was created. |
result.sys_domain | object | Domain the record belongs to. |
result.sys_domain.link | string | Table API URL of the referenced domain record. |
result.sys_domain.value | string | sys_id of the referenced domain record. |
Output Example
{"status_code":201,"response_headers":{"Set-Cookie":"JSESSIONID=65CFEB1152B06972DD21833AFE556414; Path=/; HttpOnly;Secure, glide_user...","Server-Timing":"sem_wait;dur=0, sesh_wait;dur=0","Content-Encoding":"gzip","X-Is-Logged-In":"true","X-Transaction-ID":"6ed13c41a300","Location":"https://dev60827.service-now.com/api/now/v2/table/incident/26d1744d47603110d737c...","X-Content-Type-Options":"nosniff","Pragma":"no-store,no-cache","Cache-Control":"no-cache,no-store,must-revalidate,max-age=-1","Exp...
Create Request
Generate a new service request in ServiceNow with options to specify display values and track input using susparm_display_value and sysparm_input_display_value parameters.
Endpoint
- URL: /api/now/v2/table/sc_request
- Method: POST
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
parameters.sysparm_display_value | boolean | Optional | Determines the type of data returned, either the actual values from the database or the display values of the fields. |
parameters.sysparm_input_display_value | boolean | Required | Flag that indicates whether to set field values using the display value or the actual value. |
active | boolean | Optional | Parameter for Create Request |
activity_due | string | Optional | Parameter for Create Request |
additional_assignee_list | string | Optional | Parameter for Create Request |
approval | string | Optional | Parameter for Create Request |
approval_set | string | Optional | Parameter for Create Request |
assigned_to | string | Optional | Parameter for Create Request |
assignment_group | string | Optional | Parameter for Create Request |
business_duration | string | Optional | Parameter for Create Request |
business_service | string | Optional | Parameter for Create Request |
calendar_duration | string | Optional | Parameter for Create Request |
calendar_stc | string | Optional | Parameter for Create Request |
close_notes | string | Optional | Parameter for Create Request |
closed_at | string | Optional | Parameter for Create Request |
closed_by | string | Optional | Parameter for Create Request |
cmdb_ci | object | Optional | Parameter for Create Request |
cmdb_ci.link | string | Optional | Parameter for Create Request |
cmdb_ci.value | string | Optional | Value for the parameter |
company | string | Optional | Parameter for Create Request |
contact_type | string | Optional | Type of the resource |
contract | string | Optional | Parameter for Create Request |
correlation | string | Optional | Parameter for Create Request |
correlation_id | string | Optional | Unique identifier |
delivery_address | string | Optional | Parameter for Create Request |
Input Example
{"parameters":{"sysparm_display_value":true,"sysparm_input_display_value":true}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
result | object | Record returned by ServiceNow. |
result.parent | string | Parent record of this record. |
result.delivery_address | string | Address the requested items are delivered to. |
result.made_sla | string | Whether the record met its service level agreement. |
result.watch_list | string | Comma-separated users who receive notifications about the record. |
result.upon_reject | string | Action to take when the record is rejected. |
result.requested_for | object | User the request was made for. |
result.requested_for.link | string | Table API URL of the referenced requested for record. |
result.requested_for.value | string | sys_id of the referenced requested for record. |
result.sys_updated_on | string | Date and time the record was last updated. |
result.task_effective_number | string | Effective number of the task, used across task types. |
result.approval_history | string | Journal of approval activity on the record. |
result.number | string | Record number, such as INC0010001. |
result.sys_updated_by | string | User who last updated the record. |
result.opened_by | object | User who opened the record. |
result.opened_by.link | string | Table API URL of the referenced opened by record. |
result.opened_by.value | string | sys_id of the referenced opened by record. |
result.user_input | string | User input collected for the record. |
result.price | string | Total price of the request. |
result.sys_created_on | string | Date and time the record was created. |
result.sys_domain | object | Domain the record belongs to. |
result.sys_domain.link | string | Table API URL of the referenced domain record. |
result.sys_domain.value | string | sys_id of the referenced domain record. |
Output Example
{"status_code":201,"response_headers":{"Server-Timing":"sem_wait;dur=0, sesh_wait;dur=0","Content-Encoding":"gzip","X-Is-Logged-In":"true","X-Transaction-ID":"096cc61b9736","Location":"https://dev130168.service-now.com/api/now/v2/table/sc_request/896c865f9736111084...","X-Content-Type-Options":"nosniff","Pragma":"no-store,no-cache","Cache-Control":"no-cache,no-store,must-revalidate,max-age=-1","Expires":"0","Content-Type":"application/json;charset=UTF-8","Transfer-Encoding":"chunked","Date":"Tue...
Create Security Incident
Create a new security incident in ServiceNow using specified path parameters and return details of the created incident.
Endpoint
- URL: /api/now/table/{{security_incident}}
- Method: POST
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.security_incident | string | Required | Name of the Security Incident Table |
sysparm_display_value | string | Optional | Determines the type of data returned, either the actual values from the database or the display values of the fields. |
sysparm_exclude_reference_link | boolean | Optional | Flag that indicates whether to exclude Table API links for reference fields. |
sysparm_fields | string | Optional | Comma-separated list of fields to return in the response. |
sysparm_input_display_value | boolean | Optional | Flag that indicates whether to set field values using the display value or the actual value. |
sysparm_view | string | Optional | If you also specify the sysparm_fields parameter, it takes precedent. |
Input Example
{"path_parameters":{"security_incident":"string"},"sysparm_display_value":"false","sysparm_exclude_reference_link":true,"sysparm_fields":"string","sysparm_input_display_value":true,"sysparm_view":"string"}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
result | object | Record returned by ServiceNow. |
result.parent | string | Parent record of this record. |
result.made_sla | string | Whether the record met its service level agreement. |
result.caused_by | string | Change request that caused the incident. |
result.watch_list | string | Comma-separated users who receive notifications about the record. |
result.upon_reject | string | Action to take when the record is rejected. |
result.sys_updated_on | string | Date and time the record was last updated. |
result.child_incidents | string | Number of child incidents linked to this incident. |
result.hold_reason | string | Reason the record is on hold. |
result.origin_table | string | Table of the record this record was created from. |
result.task_effective_number | string | Effective number of the task, used across task types. |
result.approval_history | string | Journal of approval activity on the record. |
result.number | string | Record number, such as INC0010001. |
result.resolved_by | string | User who resolved the record. |
result.sys_updated_by | string | User who last updated the record. |
result.opened_by | object | User who opened the record. |
result.opened_by.link | string | Table API URL of the referenced opened by record. |
result.opened_by.value | string | sys_id of the referenced opened by record. |
result.user_input | string | User input collected for the record. |
result.sys_created_on | string | Date and time the record was created. |
result.sys_domain | object | Domain the record belongs to. |
result.sys_domain.link | string | Table API URL of the referenced domain record. |
result.sys_domain.value | string | sys_id of the referenced domain record. |
Output Example
{"status_code":201,"response_headers":{"Set-Cookie":"JSESSIONID=65CFEB1152B06972DD21833AFE556414; Path=/; HttpOnly;Secure, glide_user...","Server-Timing":"sem_wait;dur=0, sesh_wait;dur=0","Content-Encoding":"gzip","X-Is-Logged-In":"true","X-Transaction-ID":"6ed13c41a300","Location":"https://dev60827.service-now.com/api/now/v2/table/incident/26d1744d47603110d737c...","X-Content-Type-Options":"nosniff","Pragma":"no-store,no-cache","Cache-Control":"no-cache,no-store,must-revalidate,max-age=-1","Exp...
Create Table Row
Create a new row in a specified ServiceNow table using the provided table name and display value parameters.
Endpoint
- URL: api/now/v2/table/{{tableName}}
- Method: POST
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.tableName | string | Required | Table name. |
parameters.sysparm_display_value | boolean | Required | Determines the type of data returned, either the actual values from the database or the display values of the fields. |
parameters.sysparm_input_display_value | boolean | Required | Flag that indicates whether to set field values using the display value or the actual value. |
comments | string | Optional | Parameter for Create Table Row |
Input Example
{"parameters":{"sysparm_display_value":true,"sysparm_input_display_value":true},"json_body":{"comments":"test"},"path_parameters":{"tableName":"incident"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
result | object | Record returned by ServiceNow. |
result.parent | string | Parent record of this record. |
result.made_sla | string | Whether the record met its service level agreement. |
result.caused_by | string | Change request that caused the incident. |
result.watch_list | string | Comma-separated users who receive notifications about the record. |
result.upon_reject | string | Action to take when the record is rejected. |
result.sys_updated_on | string | Date and time the record was last updated. |
result.child_incidents | string | Number of child incidents linked to this incident. |
result.hold_reason | string | Reason the record is on hold. |
result.origin_table | string | Table of the record this record was created from. |
result.task_effective_number | string | Effective number of the task, used across task types. |
result.approval_history | string | Journal of approval activity on the record. |
result.number | string | Record number, such as INC0010001. |
result.resolved_by | object | User who resolved the record. |
result.resolved_by.display_value | string | Display value of the referenced resolved by record. |
result.resolved_by.link | string | Table API URL of the referenced resolved by record. |
result.sys_updated_by | string | User who last updated the record. |
result.opened_by | object | User who opened the record. |
result.opened_by.display_value | string | Display value of the referenced opened by record. |
result.opened_by.link | string | Table API URL of the referenced opened by record. |
result.user_input | string | User input collected for the record. |
result.sys_created_on | string | Date and time the record was created. |
result.sys_domain | object | Domain the record belongs to. |
Output Example
{"result":{"parent":"string","made_sla":"string","caused_by":"string","watch_list":"string","upon_reject":"string","sys_updated_on":"string","child_incidents":"string","hold_reason":"string","origin_table":"string","task_effective_number":"string","approval_history":"string","number":"string","resolved_by":{"display_value":"string","link":"string"},"sys_updated_by":"string","opened_by":{"display_value":"string","link":"string"}}}
Delete Custom Endpoint
Remove a specified custom endpoint from ServiceNow by providing the required custom_endpoint path parameter.
Endpoint
- URL: api/now/v2/{{custom_endpoint}}
- Method: DELETE
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.custom_endpoint | string | Required | Parameters for the Delete Custom Endpoint action |
data_body | object | Optional | Data Body |
Input Example
{"path_parameters":{"custom_endpoint":"table/incident"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
Output Example
{"status_code":200,"response_headers":{},"reason":"OK","json_body":{}}
Get all Incidents
Retrieve all incident records from ServiceNow, with options to customize display values and limit the number of results returned.
Endpoint
- URL: /api/now/v2/table/incident
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
parameters.sysparm_query | string | Optional | Encoded query used to filter the result set. You can use a UI filter to obtain a properly encoded query. Syntax - sysparm_query=<col_name> ο»Ώ ο»Ώ |
parameters.sysparm_display_value | string | Optional | Determines the type of data returned, either the actual values from the database or the display values of the fields. Display values are manipulated based on the actual value in the database and user or system settings and preferences. Valid values are true - Returns the display values for all fields. false - Returns the actual values from the database. all - Returns both actual and display values. |
parameters.sysparm_exclude_reference_link | boolean | Optional | Flag that indicates whether to exclude Table API links for reference fields. Valid values are true - Exclude Table API links for reference fields. false - Include Table API links for reference fields. |
parameters.sysparm_fields | string | Optional | Comma-separated list of fields to return in the response. |
parameters.sysparm_limit | number | Optional | Maximum number of records to return. For requests that exceed this number of records, use the sysparm_offset parameter to paginate record retrieval. This limit is applied before ACL evaluation. If no records return, including records you have access to, rearrange the record order so records you have access to return first. |
parameters.sysparm_no_count | boolean | Optional | Flag that indicates whether to execute a select count() query on the table to return the number of rows in the associated table. Valid values are true - Do not execute a select count(). false - Execute a select count(*). |
parameters.sysparm_offset | number | Optional | Starting record index for which to begin retrieving records. Use this value to paginate record retrieval. This functionality enables the retrieval of all records, regardless of the number of records, in small manageable chunks. For example, the first time you call this endpoint, sysparm_offset is set to "0". To simply page through all available records, use sysparm_offset=sysparm_offset+sysparm_limit, until you reach the end of all records. Don't pass a negative number in the sysparm_offset parameter. |
parameters.sysparm_query_category | string | Optional | Name of the category to use for queries. |
parameters.sysparm_query_no_domain | boolean | Optional | Flag that indicates whether to restrict the record search to only the domains for which the logged in user is configured. Valid values are false - Exclude the record if it is in a domain that the currently logged in user is not configured to access. true - Include the record even if it is in a domain that the currently logged in user is not configured to access. |
parameters.sysparm_suppress_pagination_header | boolean | Optional | Flag that indicates whether to remove the Link header from the response. The Link header provides various URLs to relative pages in the record set which you can use to paginate the returned record set. Valid values are true - Remove the Link header from the response. false - Do not remove the Link header from the response. |
parameters.sysparm_view | string | Optional | UI view for which to render the data. Determines the fields returned in the response. Valid values are desktop, mobile, both. If you also specify the sysparm_fields parameter, it takes precedent. |
Input Example
{"parameters":{"sysparm_query":"number=INC0000040","sysparm_display_value":"false","sysparm_exclude_reference_link":false,"sysparm_fields":"","sysparm_limit":10000,"sysparm_no_count":false,"sysparm_offset":0,"sysparm_query_category":"","sysparm_query_no_domain":false,"sysparm_suppress_pagination_header":false,"sysparm_view":"desktop"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
result | array | Records returned by ServiceNow. |
result.parent | string | Parent record of this record. |
result.made_sla | string | Whether the record met its service level agreement. |
result.caused_by | string | Change request that caused the incident. |
result.watch_list | string | Comma-separated users who receive notifications about the record. |
result.upon_reject | string | Action to take when the record is rejected. |
result.sys_updated_on | string | Date and time the record was last updated. |
result.child_incidents | string | Number of child incidents linked to this incident. |
result.hold_reason | string | Reason the record is on hold. |
result.origin_table | string | Table of the record this record was created from. |
result.task_effective_number | string | Effective number of the task, used across task types. |
result.approval_history | string | Journal of approval activity on the record. |
result.number | string | Record number, such as INC0010001. |
result.resolved_by | object | User who resolved the record. |
result.resolved_by.link | string | Table API URL of the referenced resolved by record. |
result.resolved_by.value | string | sys_id of the referenced resolved by record. |
result.sys_updated_by | string | User who last updated the record. |
result.opened_by | object | User who opened the record. |
result.opened_by.link | string | Table API URL of the referenced opened by record. |
result.opened_by.value | string | sys_id of the referenced opened by record. |
result.user_input | string | User input collected for the record. |
result.sys_created_on | string | Date and time the record was created. |
result.sys_domain | object | Domain the record belongs to. |
Output Example
{"status_code":200,"response_headers":{"Server-Timing":"sem_wait;dur=0, sesh_wait;dur=0","Content-Encoding":"gzip","X-Is-Logged-In":"true","X-Transaction-ID":"7d9414489707","Link":"<https://dev130168.service-now.com/api/now/v2/table/incident?query=number%3DINC0...","X-Total-Count":"67","X-Content-Type-Options":"nosniff","Pragma":"no-store,no-cache","Cache-Control":"no-cache,no-store,must-revalidate,max-age=-1","Expires":"0","Content-Type":"application/json;charset=UTF-8","Transfer-Encoding":"chu...
Get all Security Incidents
Retrieve all security incident records from ServiceNow with customizable display and pagination using a specified incident path parameter.
Endpoint
- URL: /api/now/table/{{security_incident}}
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.security_incident | string | Required | Name of the Security Incident Table. |
parameters.sysparm_query | string | Optional | Encoded query used to filter the result set. You can use a UI filter to obtain a properly encoded query. Syntax - sysparm_query=<col_name> ο»Ώ ο»Ώ |
parameters.sysparm_display_value | string | Optional | Determines the type of data returned, either the actual values from the database or the display values of the fields. Display values are manipulated based on the actual value in the database and user or system settings and preferences. Valid values are true - Returns the display values for all fields. false - Returns the actual values from the database. all - Returns both actual and display values. |
parameters.sysparm_exclude_reference_link | boolean | Optional | Flag that indicates whether to exclude Table API links for reference fields. Valid values are true - Exclude Table API links for reference fields. false - Include Table API links for reference fields. |
parameters.sysparm_fields | string | Optional | Comma-separated list of fields to return in the response. |
parameters.sysparm_limit | number | Optional | Maximum number of records to return. For requests that exceed this number of records, use the sysparm_offset parameter to paginate record retrieval. This limit is applied before ACL evaluation. If no records return, including records you have access to, rearrange the record order so records you have access to return first. |
parameters.sysparm_no_count | boolean | Optional | Flag that indicates whether to execute a select count() query on the table to return the number of rows in the associated table. Valid values are true - Do not execute a select count(). false - Execute a select count(*). |
parameters.sysparm_offset | number | Optional | Starting record index for which to begin retrieving records. Use this value to paginate record retrieval. This functionality enables the retrieval of all records, regardless of the number of records, in small manageable chunks. For example, the first time you call this endpoint, sysparm_offset is set to "0". To simply page through all available records, use sysparm_offset=sysparm_offset+sysparm_limit, until you reach the end of all records. Don't pass a negative number in the sysparm_offset parameter. |
parameters.sysparm_query_category | string | Optional | Name of the category to use for queries. |
parameters.sysparm_query_no_domain | boolean | Optional | Flag that indicates whether to restrict the record search to only the domains for which the logged in user is configured. Valid values are false - Exclude the record if it is in a domain that the currently logged in user is not configured to access. true - Include the record even if it is in a domain that the currently logged in user is not configured to access. |
parameters.sysparm_suppress_pagination_header | boolean | Optional | Flag that indicates whether to remove the Link header from the response. The Link header provides various URLs to relative pages in the record set which you can use to paginate the returned record set. Valid values are true - Remove the Link header from the response. false - Do not remove the Link header from the response. |
parameters.sysparm_view | string | Optional | UI view for which to render the data. Determines the fields returned in the response. Valid values are desktop, mobile, both. If you also specify the sysparm_fields parameter, it takes precedent. |
Input Example
{"parameters":{"sysparm_query":"number=INC0000040","sysparm_display_value":"false","sysparm_exclude_reference_link":false,"sysparm_fields":"","sysparm_limit":10000,"sysparm_no_count":false,"sysparm_offset":0,"sysparm_query_category":"","sysparm_query_no_domain":false,"sysparm_suppress_pagination_header":false,"sysparm_view":"desktop"},"path_parameters":{"security_incident":"sn_si_incident"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
result | array | Records returned by ServiceNow. |
result.parent | string | Parent record of this record. |
result.made_sla | string | Whether the record met its service level agreement. |
result.watch_list | string | Comma-separated users who receive notifications about the record. |
result.upon_reject | string | Action to take when the record is rejected. |
result.sys_updated_on | string | Date and time the record was last updated. |
result.approval_history | string | Journal of approval activity on the record. |
result.number | string | Record number, such as INC0010001. |
result.sys_updated_by | string | User who last updated the record. |
result.opened_by | object | User who opened the record. |
result.opened_by.link | string | Table API URL of the referenced opened by record. |
result.opened_by.value | string | sys_id of the referenced opened by record. |
result.user_input | string | User input collected for the record. |
result.sys_created_on | string | Date and time the record was created. |
result.sys_domain | object | Domain the record belongs to. |
result.sys_domain.link | string | Table API URL of the referenced domain record. |
result.sys_domain.value | string | sys_id of the referenced domain record. |
result.state | string | Current state of the record. |
result.sys_created_by | string | User who created the record. |
result.knowledge | string | Whether the record should be submitted as a knowledge article. |
result.order | string | Order of the record within its parent. |
result.closed_at | string | Date and time the record was closed. |
result.cmdb_ci | object | Configuration item affected by the record. |
Output Example
{"status_code":200,"response_headers":{"Server-Timing":"sem_wait;dur=0, sesh_wait;dur=0","Content-Encoding":"gzip","X-Is-Logged-In":"true","X-Transaction-ID":"0a564c938322","X-Total-Count":"1","X-Content-Type-Options":"nosniff","Pragma":"no-store,no-cache","Cache-Control":"no-cache,no-store,must-revalidate,max-age=-1","Expires":"0","Content-Type":"application/json;charset=UTF-8","Transfer-Encoding":"chunked","Date":"Mon, 23 Dec 2024 10:03:47 GMT","Keep-Alive":"timeout=70","Connection":"keep-aliv...
Get Attachment
Retrieve a specific attachment from a ServiceNow table using the unique sys_id and return the file details.
Endpoint
- URL: api/now/attachment/{{sys_id}}/file
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.sys_id | string | Required | Sys_id of the attachment record from which to return binary data. |
Input Example
{"path_parameters":{"sys_id":"1c741bd70b2322007518478d83673af3"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
file | array | Downloaded attachment. |
Output Example
{"status_code":200,"response_headers":{"Server-Timing":"sem_wait;dur=0, sesh_wait;dur=0","Content-Encoding":"gzip","X-Is-Logged-In":"true","X-Transaction-ID":"1dd293709703","Content-Disposition":"attachment;filename=\"test\";filename*=UTF-8''test","X-Content-Type-Options":"nosniff","x-attachment-metadata":"{ \"size_bytes\" : \"5881\", \"file_name\" : \"test\", \"sys_mod_count\" : \"1\", \"avera...","x-edge-enc-proxy-static":"true","Content-Type":"application/json;charset=UTF-8","Transfer-Enc...
Get Attachment Metadata
Retrieve metadata for attachments in ServiceNow, with optional filtering using the 'sysparm_query' parameter.
Endpoint
- URL: api/now/attachment
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
parameters.sysparm_query | string | Required | Encoded query. Queries for the Attachment API are relative to the Attachments [sys_attachment] table. |
Input Example
{"parameters":{"sysparm_query":"table_sys_id=1c741bd70b2322007518478d83673af3"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
result | array | Metadata records of the matching attachments. |
Output Example
{"status_code":200,"response_headers":{"Server-Timing":"sem_wait;dur=0, sesh_wait;dur=0","Content-Encoding":"gzip","X-Is-Logged-In":"true","X-Transaction-ID":"09ee25ec974f","X-Total-Count":"2","X-Content-Type-Options":"nosniff","Pragma":"no-store,no-cache","Cache-Control":"no-cache,no-store,must-revalidate,max-age=-1","Expires":"0","Content-Type":"application/json;charset=UTF-8","Transfer-Encoding":"chunked","Date":"Sat, 05 Nov 2022 16:24:03 GMT","Keep-Alive":"timeout=20","Connection":"keep-aliv...
Get Custom Endpoint
Retrieve data from a specified custom endpoint in ServiceNow using the provided 'custom_endpoint' path parameter.
Endpoint
- URL: api/now/v2/{{custom_endpoint}}
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.custom_endpoint | string | Required | Parameters for the Get Custom Endpoint action |
parameters.display_value | boolean | Optional | Parameters for the Get Custom Endpoint action |
parameters.sysparm_limit | number | Optional | Parameters for the Get Custom Endpoint action |
data_body | object | Optional | Data Body |
Input Example
{"parameters":{"display_value":true,"sysparm_limit":1},"path_parameters":{"custom_endpoint":"table/incident"}}
Get Table
Retrieve records from a specified ServiceNow table by providing the table name as a path parameter.
Endpoint
- URL: api/now/v2/table/{{tableName}}
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.tableName | string | Required | Name of the table from which to retrieve the records. |
parameters.name_value_pairs | object | Optional | Parameters for the Get Table action |
parameters.name_value_pairs.active | string | Optional | Parameters for the Get Table action |
parameters.name_value_pairs.assigned_to | string | Optional | Parameters for the Get Table action |
parameters.name_value_pairs.state | string | Optional | Parameters for the Get Table action |
parameters.sysparm_display_value | string | Optional | Parameters for the Get Table action |
parameters.sysparm_exclude_reference_link | boolean | Optional | Parameters for the Get Table action |
parameters.sysparm_fields | string | Optional | Parameters for the Get Table action |
parameters.sysparm_limit | number | Optional | Parameters for the Get Table action |
parameters.sysparm_no_count | boolean | Optional | Parameters for the Get Table action |
parameters.sysparm_offset | number | Optional | Parameters for the Get Table action |
parameters.sysparm_query | string | Optional | Parameters for the Get Table action |
parameters.sysparm_query_category | string | Optional | Parameters for the Get Table action |
parameters.sysparm_query_no_domain | boolean | Optional | Parameters for the Get Table action |
parameters.sysparm_suppress_pagination_header | boolean | Optional | Parameters for the Get Table action |
parameters.sysparm_view | string | Optional | Parameters for the Get Table action |
Input Example
{"parameters":{"name_value_pairs":{"active":"true","assigned_to":"john.smith","state":"closed"},"sysparm_display_value":"all","sysparm_exclude_reference_link":true,"sysparm_fields":"field1,field2,field3","sysparm_limit":100,"sysparm_no_count":true,"sysparm_offset":0,"sysparm_query":"caller_id=javascript:gs.getUserID()^active=true^ORDERBYnumber^ORDERBYDESCcategory","sysparm_query_category":"category_name","sysparm_query_no_domain":false,"sysparm_suppress_pagination_header":true,"sysparm_view":"desktop"},"path_parameters":{"tableName":"problem"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
result | array | Records returned by ServiceNow. |
result.parent | string | Parent record of this record. |
result.made_sla | string | Whether the record met its service level agreement. |
result.watch_list | string | Comma-separated users who receive notifications about the record. |
result.upon_reject | string | Action to take when the record is rejected. |
result.sys_updated_on | string | Date and time the record was last updated. |
result.approval_history | string | Journal of approval activity on the record. |
result.number | string | Record number, such as INC0010001. |
result.sys_updated_by | string | User who last updated the record. |
result.opened_by | object | User who opened the record. |
result.opened_by.link | string | Table API URL of the referenced opened by record. |
result.opened_by.value | string | sys_id of the referenced opened by record. |
result.user_input | string | User input collected for the record. |
result.sys_created_on | string | Date and time the record was created. |
result.sys_domain | object | Domain the record belongs to. |
result.sys_domain.link | string | Table API URL of the referenced domain record. |
result.sys_domain.value | string | sys_id of the referenced domain record. |
result.state | string | Current state of the record. |
result.sys_created_by | string | User who created the record. |
result.knowledge | string | Whether the record should be submitted as a knowledge article. |
result.order | string | Order of the record within its parent. |
result.closed_at | string | Date and time the record was closed. |
result.cmdb_ci | object | Configuration item affected by the record. |
Output Example
{"status_code":200,"response_headers":{},"reason":"OK","json_body":{"result":[{}]}}
Get Turbine Schema Alerts
Retrieve ServiceNow table records such as incidents or tasks within a specified time window and return them as Turbine Schema alerts, supporting filters like count, offset, time field, and encoded queries.
Endpoint
- URL: api/now/v2/table/{{tableName}}
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.tableName | string | Required | Table API table to read, e.g. incident, sn_si_incident, sc_task. |
parameters.lookback_hours | number | Optional | Window length in hours: start = End Time minus this. Ignored when Start Time is set. Default 24. |
parameters.max_alerts | integer | Optional | Records to return (sysparm_limit), 1 to 10000. Default 100. |
parameters.offset | integer | Optional | Records to skip (sysparm_offset), oldest first, for paging a window. Default 0. |
parameters.start_time | string | Optional | ISO-8601 UTC start of the window. Empty means End Time minus Lookback Hours. |
parameters.end_time | string | Optional | ISO-8601 UTC end of the window. Empty means now. |
parameters.time_field | string | Optional | Date-time field the window and order use. sys_created_on (default) for new records, sys_updated_on to also pick up updates. |
parameters.query | string | Optional | Extra encoded query ANDed with the window, e.g. active=true^priority<=2. No ORDERBY: records are ordered by Time Field then sys_id. |
parameters.display_value | string | Optional | sysparm_display_value. all (default) gives names for users, CIs, company and categories; false gives sys_ids only. |
parameters.organization | string | Optional | Set as alert_organization on every alert. Empty uses the record's company. |
Input Example
{"parameters":{"lookback_hours":24,"max_alerts":100,"offset":0,"query":"active=true","display_value":"all"},"path_parameters":{"tableName":"incident"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
alerts | array | Turbine Schema alerts, one per ServiceNow record, in ServiceNow order. |
alerts.alert_categories | array | Categories of the alert, taken from the record's category fields. |
alerts.alert_created_timestamp | string | Date and time the record was created in ServiceNow. |
alerts.alert_description | string | Description of the alert. |
alerts.alert_end_timestamp | string | Date and time the activity ended (the record's closed or resolved time). |
alerts.alert_impacted_hostnames | array | Host names affected by the alert. |
alerts.alert_impacted_ip_addresses | array | IP addresses affected by the alert. |
alerts.alert_impacted_usernames | array | User names affected by the alert. |
alerts.alert_ingested_timestamp | string | Date and time the alert was ingested. |
alerts.alert_mitre_attack_tactic_technique | array | alert_mitre_attack_phases |
alerts.alert_mitre_attack_tactic_technique.tactics | array | The a list of tactic ID's/names that are associated with the attack technique, as defined by https://attack.mitre.org/wiki/ATT&CK_MatrixATT&CK Matrix ο»Ώ ο»Ώ ο»Ώ |
alerts.alert_mitre_attack_tactic_technique.tactics.name | string | The tactic name that is associated with the attack technique, as defined by https://attack.mitre.org/wiki/ATT&CK_MatrixATT&CK Matrix ο»Ώ ο»Ώ ο»Ώ |
alerts.alert_mitre_attack_tactic_technique.tactics.uid | string | The tactic ID that is associated with the attack technique, as defined by https://attack.mitre.org/wiki/ATT&CK_MatrixATT&CK Matrix ο»Ώ ο»Ώ ο»Ώ |
alerts.alert_mitre_attack_tactic_technique.technique | object | The attack technique. |
alerts.alert_mitre_attack_tactic_technique.technique.name | string | The name of the attack technique, as defined by https://attack.mitre.org/wiki/ATT&CK_MatrixATT&CK Matrix ο»Ώ ο»Ώ ο»Ώ ο»Ώ ο»Ώ |
alerts.alert_mitre_attack_tactic_technique.technique.uid | string | The unique identifier of the attack technique, as defined by https://attack.mitre.org/wiki/ATT&CK_MatrixATT&CK Matrix ο»Ώ ο»Ώ ο»Ώ ο»Ώ ο»Ώ |
alerts.alert_mitre_attack_tactic_technique.version | string | The ATT&CK Matrix version. |
alerts.alert_organization | string | Organization the alert belongs to. |
alerts.alert_originating_files | array | Files associated with the alert. |
alerts.alert_originating_files.content | object | Content of the file. |
alerts.alert_originating_files.content.base64 | string | Base64-encoded content of the file. |
alerts.alert_originating_files.content.turbine_attachment | object | Turbine attachment reference for the file. |
alerts.alert_originating_files.file_accessed | string | Date and time the file was last accessed. |
Output Example
{"alerts":[{"alert_categories":[],"alert_created_timestamp":"string","alert_description":"string","alert_end_timestamp":"string","alert_impacted_hostnames":[],"alert_impacted_ip_addresses":[],"alert_impacted_usernames":[],"alert_ingested_timestamp":"string","alert_mitre_attack_tactic_technique":[],"alert_organization":"string","alert_originating_files":[],"alert_permalink":"string","alert_provider":"string","alert_risk_score":123,"alert_rules":[]}],"alert_count":123,"total_alerts":123,"table":"s...
Patch Custom Endpoint
Apply a PATCH request to a specified custom endpoint in ServiceNow using path parameters with the v2 API.
Endpoint
- URL: api/now/v2/{{custom_endpoint}}
- Method: PATCH
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.custom_endpoint | string | Required | Parameters for the Patch Custom Endpoint action |
data_body | object | Optional | Data Body |
Input Example
{"path_parameters":{"custom_endpoint":"table/incident"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
Output Example
{"status_code":200,"response_headers":{},"reason":"OK","json_body":{}}
Post Custom Endpoint
Execute a POST request to any specified custom endpoint in ServiceNow v2 using the provided custom_endpoint path parameter.
Endpoint
- URL: api/now/v2/{{custom_endpoint}}
- Method: POST
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.custom_endpoint | string | Required | Parameters for the Post Custom Endpoint action |
parameters.sysparm_display_value | boolean | Optional | Parameters for the Post Custom Endpoint action |
parameters.sysparm_input_display_value | boolean | Optional | Parameters for the Post Custom Endpoint action |
data_body | object | Optional | Data Body |
Input Example
{"parameters":{"sysparm_display_value":true,"sysparm_input_display_value":true},"path_parameters":{"custom_endpoint":"table/sc_request"}}
Put Custom Endpoint
Execute a PUT request to a specified ServiceNow custom endpoint using provided path parameters and update the resource accordingly.
Endpoint
- URL: api/now/v2/{{custom_endpoint}}
- Method: PUT
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.custom_endpoint | string | Required | Parameters for the Put Custom Endpoint action |
data_body | object | Optional | Data Body |
Input Example
{"path_parameters":{"custom_endpoint":"table/incident"}}
Queries ServiceNow CMDB
Retrieve Configuration Management Database (CMDB) records from ServiceNow using sys_id, IP address, hostname, or FQDN, with support for optional parameters to refine data retrieval.
Endpoint
- URL: api/now/table/cmdb_ci
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
hostname | string | Optional | Short host name as stored on the CMDB CI name field. |
fqdn | string | Optional | Fully qualified domain name if it matches the CMDB name field. |
ip_address | string | Optional | Primary IP on the configuration item when modeled on cmdb_ci.ip_address. |
cmdb_ci_sys_id | string | Optional | 32-character sys_id of the configuration item when already known. |
parameters.include_ip_addresses | boolean | Optional | GET cmdb_ci_ip_address for rows linked to the matched CI. |
parameters.include_vulnerable_items | boolean | Optional | GET sn_vulnerable_item when Vulnerability Response exists (404 skipped). |
parameters.sysparm_limit | number | Optional | Max CMDB rows (Table API default 10000; this action defaults 10). |
parameters.vulnerable_item_limit | number | Optional | sysparm_limit for the vulnerable-items GET. |
parameters.sysparm_display_value | string | Optional | Response field format β false, true, or all (default all in this action). |
parameters.sysparm_exclude_reference_link | boolean | Optional | Exclude Table API link metadata on reference fields (default true). |
parameters.sysparm_fields | string | Optional | Comma-separated fields to return; invalid fields ignored. |
parameters.sysparm_offset | number | Optional | Pagination start index for the CMDB GET (default 0). |
parameters.sysparm_no_count | boolean | Optional | true skips select count(*) for total row count. |
parameters.sysparm_query_no_domain | boolean | Optional | true includes records outside user domain (restricted role). |
parameters.sysparm_suppress_pagination_header | boolean | Optional | true removes Link header used for pagination URLs. |
parameters.sysparm_view | string | Optional | desktop, mobile, or both β fields returned unless sysparm_fields set. |
parameters.sysparm_query_category | string | Optional | Category name for query filtering. |
Input Example
{"hostname":"SRV-FINANCE-03","fqdn":"srv-finance-03.corp.example.com","ip_address":"10.1.1.50","cmdb_ci_sys_id":"55b35562c0a8010e01cff22378e0aea9"}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
enrichment_status | string | success, no_match, or error. |
error | string | Error message, when the lookup failed. |
warnings | array | Warnings raised while looking up CMDB, user and vulnerability data. |
query_used | string | Encoded sysparm_query sent to cmdb_ci. |
match_count | number | Number of CMDB configuration items that matched the identifiers. |
asset_summary | object | Subset of CMDB fields from the primary CI. |
cmdb_ci_records | array | Table API result array from GET /api/now/table/cmdb_ci. |
ip_addresses | array | Rows from GET /api/now/table/cmdb_ci_ip_address when enabled. |
users | object | sys_user records from GET /api/now/table/sys_user/ο»Ώ. |
vulnerable_items | array | Rows from GET /api/now/table/sn_vulnerable_item when enabled. |
notes | string | Notes on data that the CMDB lookup does not cover. |
Output Example
{"status_code":200,"response_headers":{},"reason":"OK","json_body":{"enrichment_status":"success","warnings":[],"query_used":"ip_address=10.1.1.50","match_count":1,"asset_summary":{"name":"SRV-FINANCE-03","sys_id":"55b35562c0a8010e01cff22378e0aea9","ip_address":"10.1.1.50","os":"Windows Server 2019"},"cmdb_ci_records":[],"ip_addresses":[],"users":{},"vulnerable_items":[],"notes":""}}
ServiceNow Get Custom Action
Execute a custom action in ServiceNow by targeting specific API endpoints using the 'mid_extension' and 'end_extension' path parameters.
Endpoint
- URL: api/{{mid_extension}}/v2/{{end_extension}}
- Method: GET
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.mid_extension | string | Required | Parameters for the ServiceNow Get Custom Action action |
path_parameters.end_extension | string | Required | Parameters for the ServiceNow Get Custom Action action |
Input Example
{"path_parameters":{"mid_extension":"string","end_extension":"string"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
Output Example
{"status_code":200,"response_headers":{"content-length":"140","content-type":"application/json","Date":"Mon, 2 Sep 2024 20:37:23 GMT"},"reason":"OK","json_body":{}}
ServiceNow Patch Custom Action
Execute a custom PATCH request in ServiceNow using specified path parameters to update targeted resources.
Endpoint
- URL: api/{{mid_extension}}/v2/{{end_extension}}
- Method: PATCH
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.mid_extension | string | Required | Parameters for the ServiceNow Patch Custom Action action |
path_parameters.end_extension | string | Required | Parameters for the ServiceNow Patch Custom Action action |
comments | string | Optional | Parameter for ServiceNow Patch Custom Action |
Input Example
{"json_body":{"comments":"test"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
Output Example
{"status_code":200,"response_headers":{"content-length":"140","content-type":"application/json","Date":"Mon, 2 Sep 2024 20:37:23 GMT"},"reason":"OK","json_body":{}}
ServiceNow Post Custom Action
Execute a custom action in ServiceNow by specifying the required 'mid_extension' and 'end_extension' path parameters.
Endpoint
- URL: api/{{mid_extension}}/v2/{{end_extension}}
- Method: POST
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.mid_extension | string | Required | Parameters for the ServiceNow Post Custom Action action |
path_parameters.end_extension | string | Required | Parameters for the ServiceNow Post Custom Action action |
comments | string | Optional | Parameter for ServiceNow Post Custom Action |
Input Example
{"json_body":{"comments":"test"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
Output Example
{"status_code":200,"response_headers":{"content-length":"140","content-type":"application/json","Date":"Mon, 2 Sep 2024 20:37:23 GMT"},"reason":"OK","json_body":{}}
Update Incident
Update an existing incident in ServiceNow by specifying the unique sys_id and providing additional details in the JSON body.
Endpoint
- URL: /api/now/table/incident/{{sys_id}}
- Method: PATCH
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.sys_id | string | Required | Sys_id of the record to be updated. |
sysparm_display_value | string | Optional | Determines the type of data returned, either the actual values from the database or the display values of the fields. |
sysparm_fields | string | Optional | Comma-separated list of fields to return in the response. |
sysparm_input_display_value | boolean | Optional | Flag that indicates whether to set field values using the display value or the actual value. |
sysparm_query_no_domain | boolean | Optional | Flag that indicates whether to restrict the record search to only the domains for which the logged in user is configured. |
sysparm_view | string | Optional | If you also specify the sysparm_fields parameter, it takes precedent. |
Input Example
{"path_parameters":{"sys_id":"string"},"sysparm_display_value":"false","sysparm_fields":"string","sysparm_input_display_value":true,"sysparm_query_no_domain":true,"sysparm_view":"string"}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
response_text | string | Raw text body of the response. |
Output Example
{"status_code":200,"response_headers":{"Set-Cookie":"JSESSIONID=CEA60557841F8F77A8AB86E60B05F18D; Path=/; HttpOnly;Secure, BIGipServe...","Server-Timing":"wall;dur=0, sem_wait;dur=0, sesh_wait;dur=0, app_cpu;dur=0, db;dur=1, acl;dur=0,...","Content-Security-Policy":"frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com","Content-Length":"0","Date":"Mon, 07 Aug 2023 11:12:15 GMT","Keep-Alive":"timeout=70","Connection":"keep-alive","Server":"ServiceNow","Strict-Transport-Security":"max-...
Update Security Incident
Update a specific security incident in ServiceNow by providing the unique sys_id and security incident identifier as path parameters.
Endpoint
- URL: api/now/table/{{security_incident}}/{{sys_id}}
- Method: PATCH
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.security_incident | string | Required | Name of the Security Incident Table |
path_parameters.sys_id | string | Required | ID of the security incident to update. |
sysparm_display_value | string | Optional | Determines the type of data returned, either the actual values from the database or the display values of the fields. |
sysparm_fields | string | Optional | Comma-separated list of fields to return in the response. |
sysparm_input_display_value | boolean | Optional | Flag that indicates whether to set field values using the display value or the actual value. |
sysparm_query_no_domain | boolean | Optional | Flag that indicates whether to restrict the record search to only the domains for which the logged in user is configured. |
sysparm_view | string | Optional | If you also specify the sysparm_fields parameter, it takes precedent. |
Input Example
{"path_parameters":{"security_incident":"string","sys_id":"string"},"sysparm_display_value":"false","sysparm_fields":"string","sysparm_input_display_value":true,"sysparm_query_no_domain":true,"sysparm_view":"string"}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
response_text | string | Raw text body of the response. |
Output Example
{"status_code":200,"response_headers":{"Set-Cookie":"JSESSIONID=0ADFD22F053BCC78A9A82FAF40E83D50; Path=/; HttpOnly;Secure, BIGipServe...","Server-Timing":"wall;dur=0, sem_wait;dur=0, sesh_wait;dur=0, app_cpu;dur=0, db;dur=1, acl;dur=0,...","Content-Security-Policy":"frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com","Content-Length":"0","Date":"Mon, 07 Aug 2023 11:18:32 GMT","Keep-Alive":"timeout=70","Connection":"close","Server":"ServiceNow","Strict-Transport-Security":"max-age=6...
Update Table Row
Update a specific row in a ServiceNow table by sys_id, with options to customize display values and additional settings using path parameters.
Endpoint
- URL: api/now/v2/table/{{tableName}}/{{sys_id}}
- Method: PATCH
Input
Argument Name | Type | Required | Description |
|---|---|---|---|
path_parameters.tableName | string | Required | Table name |
path_parameters.sys_id | string | Required | Sys_id of the record to be updated. |
parameters.sysparm_display_value | boolean | Required | Determines the type of data returned, either the actual values from the database or the display values of the fields. |
parameters.sysparm_input_display_value | boolean | Required | Flag that indicates whether to set field values using the display value or the actual value. |
comments | string | Optional | Parameter for Update Table Row |
Input Example
{"parameters":{"sysparm_display_value":true,"sysparm_input_display_value":true},"json_body":{"comments":"test"},"path_parameters":{"tableName":"incident","sys_id":"1c741bd70b2322007518478d83673af3"}}
Output
Parameter | Type | Description |
|---|---|---|
status_code | number | HTTP status code of the response. |
reason | string | HTTP reason phrase of the response, such as OK or Created. |
result | object | Record returned by ServiceNow. |
result.parent | string | Parent record of this record. |
result.made_sla | string | Whether the record met its service level agreement. |
result.caused_by | string | Change request that caused the incident. |
result.watch_list | string | Comma-separated users who receive notifications about the record. |
result.upon_reject | string | Action to take when the record is rejected. |
result.sys_updated_on | string | Date and time the record was last updated. |
result.child_incidents | string | Number of child incidents linked to this incident. |
result.hold_reason | string | Reason the record is on hold. |
result.origin_table | string | Table of the record this record was created from. |
result.task_effective_number | string | Effective number of the task, used across task types. |
result.approval_history | string | Journal of approval activity on the record. |
result.number | string | Record number, such as INC0010001. |
result.resolved_by | object | User who resolved the record. |
result.resolved_by.display_value | string | Display value of the referenced resolved by record. |
result.resolved_by.link | string | Table API URL of the referenced resolved by record. |
result.sys_updated_by | string | User who last updated the record. |
result.opened_by | object | User who opened the record. |
result.opened_by.display_value | string | Display value of the referenced opened by record. |
result.opened_by.link | string | Table API URL of the referenced opened by record. |
result.user_input | string | User input collected for the record. |
result.sys_created_on | string | Date and time the record was created. |
result.sys_domain | object | Domain the record belongs to. |
Output Example
{"status_code":200,"response_headers":{"Server-Timing":"sem_wait;dur=0, sesh_wait;dur=0","Content-Encoding":"gzip","X-Is-Logged-In":"true","X-Transaction-ID":"c2e8b1909703","X-Content-Type-Options":"nosniff","Pragma":"no-store,no-cache","Cache-Control":"no-cache,no-store,must-revalidate,max-age=-1","Expires":"0","Content-Type":"application/json;charset=UTF-8","Transfer-Encoding":"chunked","Date":"Fri, 04 Nov 2022 22:29:20 GMT","Keep-Alive":"timeout=20","Connection":"keep-alive","Server":"Service...
Response Headers
Header | Description | Example |
|---|---|---|
Cache-Control | Caching directives returned by ServiceNow. | no-cache,no-store,must-revalidate,max-age=-1 |
Connection | Connection control option for the HTTP connection. | close |
Content-Disposition | Indicates the response is an attachment and gives its file name. | attachment;filename="test";filename*=UTF-8''test |
Content-Encoding | Encoding applied to the response body, such as gzip. | gzip |
content-length | Size of the response body in bytes. | 140 |
Content-Security-Policy | Content security policy applied to the response. | frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com |
content-type | Media type of the response body. | application/json |
Date | Date and time the response was generated. | Tue, 01 Nov 2022 21:20:31 GMT |
Expires | Date and time after which the response is considered stale. | 0 |
Keep-Alive | Keep-alive timeout settings for the connection. | timeout=70 |
Link | Pagination links (first, prev, next, last) for the result set. | https://dev130168.service-now.com/api/now/v2/table/incident?query=number%3DINC0000040&display_value=True&sysparm_limit=1&sysparm_offset=0;rel="first",https://dev130168.service-now.com/api/now/v2/table/incident?query=number%3DINC0000040&display_value=True&sysparm_limit=1&sysparm_offset=-1;rel="prev",https://dev130168.service-now.com/api/now/v2/table/incident?query=number%3DINC0000040&display_value=True&sysparm_limit=1&sysparm_offset=1;rel="next",https://dev130168.service-now.com/api/now/v2/table/incident?query=number%3DINC0000040&display_value=True&sysparm_limit=1&sysparm_offset=66;rel="last" |
Location | URL of the newly created resource. | |
Pragma | Legacy caching directives. | no-store,no-cache |
Server | Name of the server that handled the request. | ServiceNow |
Server-Timing | Server-side timing metrics for the request. | sem_wait;dur=0, sesh_wait;dur=0 |
Set-Cookie | Session cookies set by the ServiceNow instance. | glide_user=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly; SameSite=None; Secure, glide_user_session=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly; SameSite=None; Secure, glide_user_route=glide.f6d1c4085a807931391acf9b7192b09e; Max-Age=2147483647; Expires=Thu, 23-Nov-2090 01:43:27 GMT; Path=/; HttpOnly; SameSite=None; Secure, glide_session_store=8EE8B5509703111084D57E121153AF4B; Max-Age=1800; Expires=Fri, 04-Nov-2022 22:59:20 GMT; Path=/; HttpOnly; SameSite=None; Secure |
Strict-Transport-Security | HTTP Strict Transport Security policy. | max-age=63072000; includeSubDomains |
Transfer-Encoding | Transfer encoding used for the response body, such as chunked. | chunked |
x-attachment-metadata | JSON-encoded metadata of the downloaded attachment. | ο»Ώ |
X-Content-Type-Options | Instructs browsers not to MIME-sniff the content type. | nosniff |
x-edge-enc-proxy-static | Internal ServiceNow edge proxy header. | true |
X-Is-Logged-In | Whether the request was made by an authenticated session. | true |
X-Total-Count | Total number of records that match the query. | 67 |
X-Transaction-ID | ServiceNow transaction ID for the request. | 1dd293709703 |