- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2016 02:06 PM
I have a business rule on a table that is owned by an application. The scope of the business rule is global (sys_scope=='global'). How can I change it to application scope?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2016 02:11 PM
you can use background scripts to do that:
var br = new GlideRecord('<business rule table>');
br.get('<sys_id of your BR>');
br.sys_scope = '<your app scope>';
br.update();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2016 02:08 PM
Hi Giles,
You may have need to move changes between global and private application scopes. For example:
- You want an application created in a prior release to be a scoped application.
- You want an application inadvertently made in the global scope to be in a private scope.
- You want an application inadvertently made in a private scope to be in the global scope.
- You want to move features from one private scope application to another private scope application.
In all cases, you must create a new application in the proper scope and manually move changes to it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2016 02:11 PM
you can use background scripts to do that:
var br = new GlideRecord('<business rule table>');
br.get('<sys_id of your BR>');
br.sys_scope = '<your app scope>';
br.update();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2016 07:42 PM
I would advise caution around this approach, I don't think it is supported by ServiceNow.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2016 04:27 AM
It's probably not, but I have not seen it cause issues. Of course, I am the guy always dissecting update sets to get them to exactly what I want, and that isn't supported, either.