Debugging business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2010 06:58 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2010 09:53 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-04-2010 06:19 AM
Thanks a lot John.It was a great help.