- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2018 11:52 PM
I am working on service portal. There is a search field on the portal home page. When user type any keywords in the search field. Their is one table[sp_log] capturing the keyword entries. I want to know which code inserting those Records to the table. I go through the widget script, but unable to found which script doing this. I want to implement same functionality in the customized search widget .
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2018 12:13 AM
Hi pushkar,
Currently we dont find any documentation from servicenow but you use the above suggested function to get the desired functionality.
check the atttached snapshot!!
Thanks,
Satheesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2020 04:34 AM
According to serviceportal.io this does it:
logStat(String type, String table, String id, opt String comments😞 void | Create a new entry in the sp_log table with a table name, a record sys_id from that name, and some type and optional comments. Handy for doing things like logging searches or visits to pages, etc. |
See: https://serviceportal.io/docs/documentation/widget_server_script_apis.md
Regards
Paul