How to get log in service portal client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2018 09:58 PM
Hi
I want to get log at time of client script side function
As in server side we are using gs.info('logs') to get logs . What we can in client script for same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2018 10:03 PM
You can use alert() function or console.log in client scripts of Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2018 10:03 PM
Hello Manisha,
JavaScript that runs on the browser, such as client scripts, can include a call to jslog() to send information to the JavaScript log. More info here.
You can refer below link in case you are looking for info messages on the screen a the client side.
Scripting alert, info, and error messages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2018 01:34 AM
Hi Manisha,
You can use jslog() or console.log() to get log on client script in case of service portal.
Regards,
Jyoti Soni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2018 01:59 AM
It will not store this log in any table. I want that log should be stored in log table.