You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This background script updates records in the ServiceNow sys_metadata table by changing their sys_scope value from one application scope to another. Use this script when you need to reassign metadata artifacts (for example during migrations or scope consolidation) from an old scoped application to a new one. Run it only in a development or test instance first.
3
+
4
+
## Configuration:
5
+
6
+
1.`oldScopeSysId` — the sys_id of the source (existing) application scope.
7
+
Replace the placeholder string `SYS_ID_OF_THE_FIRST_SCOPED_APP` with the actual sys_id.
8
+
2.`newScopeSysId` — the sys_id of the target (new) application scope.
9
+
Replace the placeholder string `SYS_ID_OF_THE_NEW_SCOPED_APP` with the actual sys_id.
10
+
Usage:
11
+
3. Logs each successful update and failures if any catches exist.
0 commit comments