How to know the script execution time of a background script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2020 09:18 AM
How do you know the script execution time of a Business Rule?
The JavaScript method performance.now() isn't working in ServiceNow.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2020 09:37 AM
Hi, Performance.now() does not exist in the version of javascript ServiceNow is using. However, there are a few modules on the platform that could help you.
You can view all slow running script on the slow script module
The page response time icon, located at the bottom of all pages. This does not show you the specific business rule causing the issue but is still helpful. additionally, you can view this information for all users in the transaction logs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2020 09:43 AM
browser developer option (F12)
<System Diagnostics> Debug Business Rules