Business rule not being triggered
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2016 05:14 PM
I have a custom table that we created and I created a Business Rule to run on this table. Regardless of what I try I can not get the BR to trigger. I have turned on debugging for Business Rules and the BR is not even being triggered. Screen shots are below. Has anyone seen this before? It is a very odd issue.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2016 08:55 PM
Hi Bobby,
Is this on your personal dev instance. If yes I can take a look.
Please let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2016 07:47 AM
This is in our Dev environment.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2016 09:54 PM
I have seen this before.
Try wrapping your script into a closure:
(function executeRule(current, previous /*null when async*/) {
gs.addInfoMessage('Hello!');
}
})(current, previous);
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2016 07:50 AM