Issue with Business Rule to Prevent Incident Resolution Without itil_admin Role
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-25-2025 03:07 AM
Hi everyone,
I'm trying to create a Business Rule in ServiceNow that prevents users without the itil_admin role from changing the state of an incident to "Resolved". I've written the following script, but I'm encountering the error message "Invalid update" and can't figure out what's wrong.
Here is the code I'm using:
My goal is to display an error message when a user without the itil_admin role attempts to set the incident state to "Resolved" and block the update action.
However, the user is still able to update the incident to "Resolved", and the requested error message appears along with another message saying "Invalid update".
Does anyone have suggestions on what might be causing the "Invalid update" error or how to improve this script?
Thanks in advance for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-01-2025 07:10 AM
Have you tried changing "When" the business rule runs? You could also try an onChange client script (i.e., when the state changes to "Resolved") with an alert popup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-01-2025 07:30 AM
your business rule should be BEFORE Update
Also when you abort, it will show "Invalid update" message and you can't remove that as it comes from OOB platform.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader