Unable to link application to Source control in Studio

mareks_p
Giga Contributor

I am using this application

GitHub - jmbauguess/UnitTestNOW: ServiceNow Unit Testing util for server side scripts

in SN, imported as update set.

When I tried to store it in my git repo, I got an error:

This application cannot be exported because it is in the global scope. Because they can contain critical components of the core platform, globally scoped applications are not presently safe to use with source control.

Why it happens and is it possible to change scope and save application in git.

Mareks

12 REPLIES 12

Hello Mareks,



To convert your solution from a global scoped application to a unique scope, you will need to recreate your application and move the logic over manually:


  • System Applications > Applications > Create New
  • From there, recreate your table names, scripts, etc. and copy/paste the logic from your existing app/update set over to the new record

http://wiki.servicenow.com/index.php?title=Managing_Applications


Thank you for the screenshot. This confirms that your current application is in the global scope which precludes you from using Studio and Source Control (and some of the other scoped features.)



As Pradeep suggested, you need to create a new application. I recommend going through Studio to do this. System Applications> Studio then create a new application and start rebuilding the contents in Studio. If you want, save your application to a Git repository. This makes it easy to distribute to others and archive for your purposes.



Source control integration


Well, nvm, now I see the "global", duh.


Yeah, Publish to Update Set is available for any app (global or not.) Global appears in the 'scope' field as you discovered. If it were a scoped app, it would have a name like x_66456_testapp


Thanks.   I did this so long ago, I forgot most of the details.