Batch Create Records
batch_create_recordsCreate multiple records across ServiceNow tables in a single batch call, supporting sequential operations with variable references to link records across tables.
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.
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. |