Slow Business Rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2019 04:14 AM
Hi All,
ServiceNow has done some analysis for my customer and sent a report saying there are some business rules are slow.
But I checked and Business rules are not lengthy. I also tried the script in business rules in background script and it is executing within a second.
There are some business rules before and some after update/insert.
Is there any way how this can be handled or what should be next step to work on such things.
Thanks and Regards,
kP
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2019 04:22 AM
Hi there,
The length of the script or the number of characters are not interesting. It could already be a simple loop, doing a before which should be an after, performing Business Rules which could be prevented using conditions, performing an identical update on several records where a updateMultiple could fit also, GlideRecord queries with poor queries, etc., etc., etc..
Do you have an example?
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2019 04:29 AM
Hi KP,
Please try debugging business rules,
Go to System Diagnostics> Debug Business Rule, then run your test again and observe the timing of each BR at the bottom of the screen.
Hopefully you find the solution where those business rules are consuming more time.
Please mark correct and helpful, if it helps you to find out your RCA.
Thanks and regards,
P.Balaram

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2019 09:00 AM
Hi there,
Did this solve your question? Or do we need to follow-up on this?
Please mark this answer as correct if it solves your question. This will help others who are looking for a similar solution. Also marking this answer as correct takes the post of the unsolved list.
Thanks.
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field