Help Desk

Submit a ticket My Tickets
Welcome
Login

ServiceNow Command Reference

Connection to the ServiceNow REST API to pull data from the Table API.

Connections

ServiceNow

Connection to ServiceNow via basic authentication

Inputs

Input Type Detail Notes
Username TextField The username to authenticate with
Password TextField The password for the user
Instance Hostname TextField The host name of the ServiceNow instance. (i.e acmecorp.service-now.com)

Commands

Create Record

Inserts one record in the specified table

Inputs

Input Type Detail Notes
Table Name TextField Name of the table in which to save the record
Fields GroupField The fields to update

Outputs

Output Output Type Notes
Record Json

Exit Codes

Code Type Detail
0 Success Success
1 Error There was an error during execution

Delete Record

Deletes the specified record from the specified table.

Inputs

Input Type Detail Notes
Table Name TextField Name of the table from which to delete the record.
Sys ID (Record ID) TextField Unique identifier of the record to delete.

Outputs

None

Exit Codes

Code Type Detail
0 Success Success
1 Error There was an error during execution

Get Record

Retrieves the record identified by the specified sys_id from the specified table.

Inputs

Input Type Detail Notes
Table Name TextField Name of the table from which to retrieve the record.
Sys ID (Record ID) TextField Unique identifier of the record to retrieve.

Outputs

Output Output Type Notes
Record Json

Exit Codes

Code Type Detail
0 Success Success
1 Error There was an error during execution

Get Records

Retrieves multiple records for the specified table.

Inputs

Input Type Detail Notes
Table Name TextField The name of the table to pull records
Fields TextField Comma-separated list of field names to return in the response. If this is left blank all fields will be returned.
Query TextField Encoded query used to filter the result set. Seprate different filters using a ^ character. For example: active=true^sys_id=1235^ORDERBYsys_id

Outputs

Output Output Type Notes
Records (JSON) File
Records (CSV) File
Total Records Integer

Exit Codes

Code Type Detail
0 Success Success
1 Error There was an error during execution

Update Record

Updates the specified record with the request body

Inputs

Input Type Detail Notes
Table Name TextField Name of the table in which the record is located
Sys ID (Record ID) TextField Unique identifier of the record to update
Fields GroupField The fields to update

Outputs

Output Output Type Notes
Record Json

Exit Codes

Code Type Detail
0 Success Success
1 Error There was an error during execution
B
Brian is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.