create_choice
Add a new choice value to a field's choice list in ServiceNow, returning a deploy-ready payload for custom states, priorities, categories, or types.
Instructions
Add a new choice value to a field's choice list in ServiceNow.
Returns deploy-ready payload for the sys_choice table. Common use: adding custom states, priorities, categories, or types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name (e.g. "incident") | |
| field | Yes | Field name (e.g. "state") | |
| value | Yes | Internal value stored in DB (e.g. "6") | |
| label | Yes | Display label shown to users (e.g. "Pending Vendor") | |
| sequence | No | Sort order (lower = first) | |
| color | No | Bootstrap color class: success, warning, danger, info, default | |
| dependent_value | No | Dependent field value (for dependent choice lists) |