Notifications

35 views

To create a debug Business Rule that will provide a stack-trace to run down troublesome behaviors, kindly paste the below in a before, order = 100, insert and update Business Rule:

gs.log('***** DEBUG - ' + new Date().getTime() + ' - ' + current.sys_id + ' - \n' + GlideLog.getStackTrace(new Packages.java.lang.Throwable()), 'Stacktrace Debug'); 

Then, once the action needing to be traced is ready to be performed, activate the Business Rule and reproduce the behavior. Then, post-reproduction, turn off the stack-trace Business Rule. The resulting logs should isolate the root of the behavior.

Article Information

Last Updated:2020-09-08 11:23:11
Published:2020-09-08