Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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