- 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 07:04 PM
ServiceNow doesn't let you move Global Scope assets to an individual application because the Scoped API is a subset of the Global API, so moving it could break your code.
You really need to recreate the business rule in the application and re-write the code using the scoped API.
List of Scoped Scriptable Objects - ServiceNow Wiki
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
01-31-2016 12:19 PM
Thanks Paul Morris for the explanation and Mike Allen for a workaround to circumvent the system.