We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Business rule not being triggered

bobbydouglas
Giga Guru

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.

find_real_file.png

find_real_file.png

17 REPLIES 17

Pradeep Sharma
ServiceNow Employee

Hi Bobby,



Is this on your personal dev instance. If yes I can take a look.


Please let me know.


This is in our Dev environment.


paulmorris
Giga Sage

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

Paul we are on Fuji I believe the script you gave me is for Helsinki.   It gave me a couple of error messages I modified it and am getting the error message below.



find_real_file.png