Batch Create Records
batch_create_recordsBatch create ServiceNow records across one or more tables in a single operation. Execute ordered creates with saveAs references (${name}) to link related records, and choose to stop or continue on errors.
Instructions
Create multiple records across one or more ServiceNow tables in a single batch. Operations execute sequentially, supporting variable references between them: use saveAs to name an operation's result sys_id, then reference it in later operations with ${name} in data values.
Example: Create a parent record with saveAs='parent', then create a child record with caller_id set to '${parent}'.
IMPORTANT: This creates records on the ServiceNow instance. Review the operations before executing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operations": "<operations>"
},
"name": "batch_create_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | The ServiceNow instance auth alias (e.g., "myinstance", "prod"). If not provided, falls back to the SN_AUTH_ALIAS environment variable. | |
| operations | Yes | Ordered list of create operations to execute. | |
| transaction | No | When true (default), stops on first error. When false, continues past errors. |