create_approval_rule
Create approval rules that automatically trigger approval requests when records match defined conditions, streamlining workflow approvals.
Instructions
Create an approval rule that automatically generates approval requests when a record matches given conditions (requires WRITE_ENABLED=true). Uses the sysapproval_rule table.
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": {
"name": "<name>",
"table": "<table>",
"approver_type": "<approver_type>",
"approver": "<approver>"
},
"name": "create_approval_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Rule name | |
| order | No | Execution order relative to other rules (default: 100) | |
| table | Yes | Table this rule applies to (e.g. "sc_request", "change_request") | |
| active | No | Activate the rule immediately (default: true) | |
| approver | Yes | sys_id of the approving user or group | |
| condition | No | Encoded query that determines when the rule fires (leave blank for always) | |
| approver_type | Yes | "user" | "group" — whether the approver is a user or a group |