Does Source Control works with Scoped Apps only or it can be used for Global apps as well?

Johannes Mweli
Giga Guru

Hi ServiceNow Community Developers,

 

I am working on a requirement to integrate ServiceNow with Github so that we are able push our changes into GitHub. One question I have though is - do you guys know if the source control in ServiceNow is scope dependent or not? In other words, can you use source control to track your changes for Global applications or it's only used for Scoped applications?

 

Kindly advise please.

 

Thanks,

Johannes 

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

Hi Johannes,

You can do this for global scopes you create. These will live on the sys_app table (custom scope table) and have a scope of global. They're really useful for moving for update sets with some caveats when it comes to missing function parity.

 

Wording from Studio when creating a global scope.

"Global scope allows for the application to be accessible to other global applications. They do not offer the same protections as scoped applications. Applications in the global scope are eligible for upload to the application repository, but not to the ServiceNow Store."

 

@SaschaWildgrube also did a fantastic write up around Development & Deployment using scopes A mature Development and Deployment Process.pdf (wildgrube.com)

View solution in original post

5 REPLIES 5

Kieran Anson
Kilo Patron

Hi Johannes,

You can do this for global scopes you create. These will live on the sys_app table (custom scope table) and have a scope of global. They're really useful for moving for update sets with some caveats when it comes to missing function parity.

 

Wording from Studio when creating a global scope.

"Global scope allows for the application to be accessible to other global applications. They do not offer the same protections as scoped applications. Applications in the global scope are eligible for upload to the application repository, but not to the ServiceNow Store."

 

@SaschaWildgrube also did a fantastic write up around Development & Deployment using scopes A mature Development and Deployment Process.pdf (wildgrube.com)

@Kieran Anson Thank you so much for response. I have another quick question please - I fully understand what you mean by Global scopes that I create however lets say I navigate to an existing business rule out there in my instance that was created a while back on the oob Global scope and I want to make changes on it, can I track those changes using source control? If so how do I turn that on because it looks to me like in order to use Source Control you must be in Studio and I am unable to access any business rules right now in the oob Global scope using Studio. 

 

Your response to this question will be greatly appreciated.

 

Thanks,

Johannes

So you've got a few options

 

Studio

Go to File > Add Existing Files. This option is useful as you can search by table, update set, or even name and bring in a bunch of files really quickly.

Core UI

If you know the content you want to move, in this example a Business Rule, you can use the actions menu and 'Move to application'. You'll get a pop-up asking which scope you want to add it to.

KieranAnson_0-1715010471438.png

 

Great, thank you so much