Slow Business Rule

kshitij patil
Mega Contributor

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

3 REPLIES 3

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

Balaram4
Kilo Expert

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 Roethof
Tera Patron
Tera Patron

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

LinkedIn