Client Side Code logging ….
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2017 09:53 PM
Hi Friends,
In Service Now, Do we have anything to checking logging of client scripts like Business Rules, UI/Data Policies? By logging technique we'll get to know which client scripts (java script) code is working or running by actions or events.
Regards,
Basant
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2017 10:02 PM
Hello Basant,
JavaScript that runs on the browser, such as client scripts, can include a call to jslog() to send information to the JavaScript Log. You may find this helpful.
Using Chrome to Debug Client Side Errors

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2017 10:03 PM
Hi Basant,
You could use the alert function
Refer this link for more details
Scripting Alert, Info, and Error Messages - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2017 11:21 PM
Thanks Friends for your reply.
I was looking if we have some external/third party or snow internal utilities to check/analyse line by line client scripts that has been executed when a transaction had happen. like incident creation/update. in these kind of operation how many client scripts had triggered and what java script had complied/run.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2017 11:58 PM