create_portal_widget
Creates a new Service Portal widget by defining its name, ID, template, CSS, client and server scripts, option schema, and demo data. Requires write access enabled.
Instructions
Create a new Service Portal widget with template, CSS, and scripts (requires WRITE_ENABLED=true)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable widget name | |
| id | Yes | Unique widget ID/handle (e.g. "my-custom-widget") | |
| template | No | Angular HTML template | |
| css | No | SCSS/CSS styles | |
| client_script | No | Client-side controller JavaScript | |
| server_script | No | Server-side script (GlideRecord calls) | |
| option_schema | No | JSON array defining widget options | |
| demo_data | No | JSON object with demo data for preview |