How can I track down what Business Rule has been triggered without any log statements?

Maxwell3
Kilo Guru

Hello all,

Is there a way to track down what Business Rule has been triggered in the logs? I don't have any log statements in the BR, and I am trying to find out if a specific Business Rule was triggered.

1 ACCEPTED SOLUTION

Ratnakar7
Mega Sage

Hi @Maxwell3 ,

 

Yes, you can track down what Business Rule has been triggered in the logs. Here are the steps you can follow:

  1. Identify the table on which the Business Rule is triggered. For example, if you suspect that a Business Rule is triggered when a record is inserted or updated in the Incident table, then that is the table you need to focus on.

  2. Look for any recent activity on that table in the system logs. You can filter the logs by table name, activity type, and time frame to narrow down the search.

  3. Once you have identified the relevant logs, look for any entries that contain the name of the Business Rule. By default, the logs will include the name of the Business Rule that was triggered, as well as the table and the activity that triggered it.

  4. If you are still unable to identify the Business Rule from the logs, you can try enabling debug logging for Business Rules. This will provide more detailed information about the Business Rules that are being triggered. To enable debug logging, go to System Logs > Debugging, and set the log level for Business Rules to "Debug".

  5. Finally, you can also try using the "Table Watcher" plugin in ServiceNow to monitor the activity on the table and identify the Business Rule that is triggered. The Table Watcher plugin allows you to set up a filter for a specific table and view real-time updates as records are inserted, updated, or deleted.

 

If my response helps you to resolve the issue close the question by Accepting solution and hit 👍thumb icon. From Correct answers others will get benefited in future.

 

Thanks,

Ratnakar

View solution in original post

5 REPLIES 5

Ratnakar7
Mega Sage

Hi @Maxwell3 ,

 

Yes, you can track down what Business Rule has been triggered in the logs. Here are the steps you can follow:

  1. Identify the table on which the Business Rule is triggered. For example, if you suspect that a Business Rule is triggered when a record is inserted or updated in the Incident table, then that is the table you need to focus on.

  2. Look for any recent activity on that table in the system logs. You can filter the logs by table name, activity type, and time frame to narrow down the search.

  3. Once you have identified the relevant logs, look for any entries that contain the name of the Business Rule. By default, the logs will include the name of the Business Rule that was triggered, as well as the table and the activity that triggered it.

  4. If you are still unable to identify the Business Rule from the logs, you can try enabling debug logging for Business Rules. This will provide more detailed information about the Business Rules that are being triggered. To enable debug logging, go to System Logs > Debugging, and set the log level for Business Rules to "Debug".

  5. Finally, you can also try using the "Table Watcher" plugin in ServiceNow to monitor the activity on the table and identify the Business Rule that is triggered. The Table Watcher plugin allows you to set up a filter for a specific table and view real-time updates as records are inserted, updated, or deleted.

 

If my response helps you to resolve the issue close the question by Accepting solution and hit 👍thumb icon. From Correct answers others will get benefited in future.

 

Thanks,

Ratnakar

Where can I find the "Table Watcher" plugin in ServiceNow?
I do not seem to find it...

Community Alums
Not applicable

Hi @Maxwell3 ,

Navigate to System Diagnostics-> Debug Business Rule(details)

when the BR's are triggered you can track them in the Debug Business Rule(details) window.

Mark as helpful, if it works.

Khasim.

This was quite useful to find which Business Rule was triggering when we are having 100+ BR in a table., Many thanks again.