Debugging business rule

habin
Kilo Contributor

Hi,
I need to debug a business rule.I have written the following code inside the business rule by referring http://wiki.service-now.com/index.phptitle=Alert,_Info,_and_Error_Message_Scripts#Business_rule_and_other_general_use

[... some code...]
gs.addInfoMessage("Hello World");
gs.print("Hello World");
gs.log("Hello World");
[... some code...]
The business rule runs successfully and does the intended tasks. but I cant find the messages I gave inside the code.(ie. 'Hello World' in this case).

1 . I have searched System Log --->ALL --->Message.
2. addInfoMessage is intended to put a message on the top of the screen but didn't get any message.

Please reply back if you have any knowledge about the same.

Thanks in advance.
Habin

6 REPLIES 6

Nothing to execute actual sql statements in, but there is a module called Scripts - Background (may be disabled) that allows admins to run free-form server-side scripts. You can also upload (Upload File module) files with js extension and have them listed in the customer section of the background scripts page.


Thanks a lot John.It was a great help.