create_ui_policy
Creates a new UI policy to dynamically control field behavior in ServiceNow, enabling conditional actions and scripts.
Instructions
Create a new UI Policy to control field behavior dynamically (requires SCRIPTING_ENABLED=true)
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": {
"short_description": "<short_description>",
"table": "<table>"
},
"name": "create_ui_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table to apply this policy on | |
| active | No | Whether to activate immediately (default: true) | |
| script | No | Optional script to run when conditions are met | |
| conditions | No | Encoded query conditions that trigger the policy | |
| run_scripts | No | Run script in addition to UI actions (default: false) | |
| short_description | Yes | Policy description |