create_ui_action
Add custom buttons or links to ServiceNow forms and lists to execute server-side scripts when clicked, enabling automated workflows and user actions.
Instructions
Create a new UI Action (button or link) on a form (requires SCRIPTING_ENABLED=true)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Button/link label visible to users | |
| table | Yes | Table to add this action on | |
| action_name | Yes | Internal action name (no spaces) | |
| script | No | Server-side script to execute when clicked | |
| type | No | "button" | "context_menu" | "related_link" | "list_button" | |
| condition | No | Condition to show/hide the action | |
| active | No | Whether to activate immediately (default: true) | |
| form_button | No | Show on form (default: true) | |
| list_button | No | Show on list (default: false) |