how to check which business rule has run on requested item?

Kiddy1
Tera Contributor

how to check which business rule has run on requested item?

1 ACCEPTED SOLUTION

Hi kiddy,



As anurag92 suggested, please open the Navigate to System Diagnostics > Debug Business Rule (Details) and then Run your RITM to see if you able capture details there, http://wiki.servicenow.com/index.php?title=Debugging_Business_Rules#Troubleshooting



otherwise another way is, just redefine the filter, I am assuming, you want to check which business Rule is setting the RITM state to closed? In this way to narrow down your filter and check what condition has been given to set the value.


find_real_file.png


Please check if it helps.


View solution in original post

6 REPLIES 6

anurag92
Kilo Sage

Click 'Debug Business Rule (Details)" under System Diagnostics. And then after the RITM is created or updated, you will be able to see all the BRs that were run during insert/update.


astha_chaubey
Tera Expert

Another approach would be, at the bebgining of you business rule place a log message (example: gs.log("@@@@Hi");). Now you can create your RITM so that your Business rule runs (meet condition of BR). Now navigate to Script log statement module and search for your log message in messages column.



Thanks & Regards,


Astha Chaubey


Shishir Srivast
Mega Sage

Hi kiddy,



You can find the Business rule based upon the (like below) like on which table it's running and if Active is true then you can have some logs enabled to check under system Logs -> system Logs statements when you run RITM, that will give you an idea how to troubleshoot if any issue.



find_real_file.png



Please mark the answer correct if the response is good enough to clarify your query.


hii Shishir Srivastava ,


i am presented with so many business rule when i am using above query,i am new to the project so i want to know for a particular ritm when it is updated which businessrule is run behind it .