Procedures

Automation procedures in the ServiceNow book.

The following documentation is for ServiceNow v1.0.2 (BDK).

to create a (record) in a table name

Creates a new record in a ServiceNow account.

Input Concepts

Concept
Description
Type
Required
Default Value

The ServiceNow Record object to be created.

servicenow record

Yes

(no default)

table name

The table name in which the record will be created.

text

Yes

(no default)

Output Concepts

Concept
Description
Type

A ServiceNow Record object representing the newly created record.

servicenow record

Examples

Create a new incident in the 'incident' table with the specified attributes.

create a json
use the above as the incident
set the incident's "short_description" to "Test Incident"
set the incident's "urgency" to "1"
set the incident's "impact" to "1"
create the incident in "incident"

to delete some records

Deletes records from ServiceNow using batch processing.

Input Concepts

Concept
Description
Type
Required
Default Value

The records to be deleted.

servicenow record

Yes

(no default)

Examples

Delete incidents in the 'incident' table.

to retrieve some (records) from servicenow

FILTER - CAPABLE

Retrieves a list of ServiceNow records based on the specified filters.

Input Concepts

Concept
Description
Type
Required
Default Value

table name

The table name from which to retrieve records.

text

Yes

(no default)

limit

The limit of objects brought by the call.

text

No

(no default)

Output Concepts

Concept
Description
Type

List of ServiceNow Records based on the specified filters.

servicenow record

Examples

Retrieve all incidents from the 'incident' table.

Retrieve all incidents from the 'incident' table whose number is 'INC0010001'.

Retrieve all incidents from the 'incident' table whose created date is after '2022-01-01'.

Retrieve 5 incidents from the 'incident' table.

to update a record

Updates a record in ServiceNow, identified by its incident number, with specified attributes and their new values.

Input Concepts

Concept
Description
Type
Required
Default Value

The ServiceNow Record object to be updated.

servicenow record

Yes

(no default)

Output Concepts

Concept
Description
Type

The updated record from ServiceNow.

servicenow record

Examples

Update an incident in the 'incident' table with the specified attributes.

Last updated

Was this helpful?