How to restore the modified built-in business role content of the system before the system upgrade

shiz
Tera Contributor

I have modified the built-in business role 'getMyApprovers' in the system, which is recorded in the update set, but the previous version has not been modified. Now facing a system upgrade, in order to restore the content I modified to the previous version. How to operate without affecting the upgrade effect.

shiz_0-1769412774863.png

The update version in the screenshot above does not include the original version. How should we restore this business role to its original version.

 

2 ACCEPTED SOLUTIONS

Hello again @shiz !
If the XML you import is truly identical to the vendor’s base version for your current release, the upgrade behavior is typically clean. However, if ServiceNow modifies that same rule in the new release, you may be prompted to review or merge the change because the platform sees that record as having been touched locally.


Also, the suggestion about “Replace on upgrade” is valid and a very good idea: Setting Replace on upgrade = true for that customized Business rule causes the platform to overwrite your local/customized version with the ServiceNow-delivered version during the next upgrade or patch, so it’s a good option if your intent is “always take the vendor version going forward” (just be aware it will discard any local changes to that item).

 

You can read more about this approach in the official ServiceNow docs here: https://www.servicenow.com/docs/r/application-development/system-update-sets/t_OverwriteCustomizsDur...

 

Please consider marking my answer as helpful and accepting it as the solution if it assisted you in any way.

 

 

View solution in original post

You screenshot looks good. After any patch upgrade. it will be reverted to OOB

View solution in original post

8 REPLIES 8

When I change the value of the 'replace_on_upgrade' field to true, the system prompts a message.

shiz_0-1769419182658.png

 

 

Will the content of the BR I modified be overwritten during the next system update?

luffy3478
Kilo Sage

Mark the "Replace on Upgrade" flag on the business rule. This ensures the rule is replaced during upgrades or any patch releases.

shiz
Tera Contributor

'Replace on Upgrade'   How to operate it specifically? If there were any examples, that would be really great

You screenshot looks good. After any patch upgrade. it will be reverted to OOB