create_ui_policy
Dynamically control field behavior by creating a new UI Policy on a ServiceNow table, using conditions and scripts to trigger actions.
Instructions
Create a new UI Policy to control field behavior dynamically (requires SCRIPTING_ENABLED=true)
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 |