Modify OOB Script / Functionality?

Community Alums
Not applicable

Let's say, we have an requirement that can be achieved by adding a few lines of code/modifying a condition in OOB Business Rule.

 

My question is which approach to follow and what is the difference?

 

1) Modify OOB business rule directly and add the required line of code/modify the OOB itself.

2) Make a copy of OOB business rule and inactive the OOB business rule, then modify the copied business rule as per the requirement.

 

The scenario is not only for business rule but for other OOB functionalities as well such as: UI Actions, Client Scripts, Email(Notifications), Widgets, Workflows, Flows etc...

 

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Community Alums 

 

1) Modify OOB business rule directly and add the required line of code/modify the OOB itself.

Atul: Not a good way and increase burden at time of upgrades.

2) Make a copy of OOB business rule and inactive the OOB business rule, then modify the copied business rule as per the requirement.

Atul: Yes, good and recommended approach.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Community Alums
Not applicable

@Dr Atul G- LNG Thanks for your response

Is it ServiceNow best practice?

and Are you also talking about other OOB functionalities such as UI Actions, Work-Flows, Widgets etc..?

 

Does the inactive OOB Business rule gets updated when there's an update/upgrade from servicenow?

This is I learn from my experience and applicable for other component as well.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Community Alums ,

 

I agree with @Dr Atul G- LNG  here . You should only update any OOTB record when there is no other way present as it will directly impact during Upgrade (you will get lot of skipped changes to go with which can be a big pain).

 

You can create a new BR & add those lines of code in it maybe change the order of it so that it does not collide with the other OOTB BR with same condition. No need to deactivate the OOTB record.

 

Thanks,

Danish