Procedures
Automation procedures in the ServiceNow BDK Book.
Make sure to add the ServiceNow BDK Book to your agent before using these automation procedures.
to create a (record) in a table name
Creates a new record in a ServiceNow account.
Input Concepts
table name
The table name in which the record will be created.
text
Yes
Output Concepts
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
Examples
Delete incidents in the 'incident' table.
...
use the above as the records
delete the records
to retrieve some (records) from servicenow
Retrieves a list of ServiceNow records based on the specified filters.
Input Concepts
table name
The table name from which to retrieve records.
text
Yes
limit
The limit of objects brought by the call.
text
No
Output Concepts
Examples
Retrieve all incidents from the 'incident' table.
retrieve some records from servicenow
... the table name is "incident"
Retrieve all incidents from the 'incident' table whose number is 'INC0010001'.
retrieve some records from servicenow whose number is "INC0010001"
... the table name is "incident"
Retrieve all incidents from the 'incident' table whose created date is after '2022-01-01'.
the date is "2024-02-25T12:30:00Z"
get the date as a datetime
use the above as the target
retrieve some records from servicenow whose "sys_created_on" is greater than the target
... the table name is "incident"
Retrieve 5 incidents from the 'incident' table.
retrieve some records from servicenow
... the table name is "incident"
... the limit is "5"
to update a record
Updates a record in ServiceNow, identified by its incident number, with specified attributes and their new values.
Input Concepts
Output Concepts
Examples
Update an incident in the 'incident' table with the specified attributes.
...
use the above as the record
set the record's "short_description" to "Updated Incident"
set the record's urgency to "2"
set the record's impact to "2"
update the record
Last updated
Was this helpful?