- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Hey Community 👋
Sharing something I built that I think a few of you will find genuinely useful.
---
The Problem
Creating UI Policy Actions in ServiceNow requires you to go one-by-one through every variable — New → fill fields → Save → repeat. On a Catalog Item with 15+ variables, that's exhausting and error-prone.
---
What Is Built
A custom UI Action called **Manage UI Policy Actions** that lives directly on the UI Policy form. When clicked, it opens a modal dialog listing every variable for the policy — whether it's a direct Catalog Item variable, a Variable Set, or a standard table field (Incident, Change, etc.).
You configure all variables in one table view and submit once.
- Key behaviours worth knowing:
- Pre-population: If policy actions already exist for this UI Policy, the tool fetches them and pre-loads their current state. You're editing existing records, not starting from scratch.
- Variable Set support: Variables from sets are prefixed with the set name (e.g. `Candidate Onboarding Details.Candidate ID`) for clarity.
- Value Action logic: Selecting `set_value` reveals a textarea for the value. Selecting `clear_value` needs no input — it just blanks the field silently on policy fire.
- Field Messages: Attach Info / Warning / Error messages to any variable directly from the same dialog.
- Theme-aware: Reads `uipa_theme_color` system property — no hardcoded colors.
- DataTables: Search and pagination built in — tested with 97 fields on the Incident table.
- Applies To
✅Catalog UI Policies (Catalog Item variables)
✅Catalog UI Policies (Variable Set variables)
✅Standard UI Policies (any table — Incident, Change, etc.)
What's in the Update Set
Tested on "Xanadu", "Zurich" & "Australia". It includes:
- UI Action (the button)
- Jelly UI Page (dialog HTML + styles)
- Client Script (jQuery / DataTables logic)
- Script Include (`bulkPolicyActionsUtils` — server-side upsert)
- System Properties for theme configuration
If this resonates, I'll share the Update Set on the ServiceNow Community — giving back to the ecosystem that's helped me grow as a consultant. Reply below if you'd like a heads up when it's live.
— Danish Bhairagdar | Senior ServiceNow Consultant
- 129 Views
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.