Change scope name of a Scoped Application

joseeduardo
Giga Expert

Good morning community! , Guys is there any way to change the scope name of an application? I understand so far your not supposed to change it, but I was wondering if maybe making a hi ticket or communicating with Servicenow directly they could help on that! is this possible? is it there any other way? Or if I have a wrong naming convention on what my application does I need to rebuild it just to correct that?

Thanks in Advance!.

Jose Eduardo Chirinos Odio.

Volteo

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi Jose,



The application scope name is a tricky subject. It's made up of two parts, the customer code and the application name. Rule #1 - DO NOT change the customer code. BAD BAD BAD.



It *IS* possible to change the application name, but it's not a lot of fun. I've done it a couple times. Here are my steps:


  1. Export the application to an update set
  2. Export the update set to XML
  3. Delete the application
  4. Make a copy of the XML file
  5. On the new copy, search and replace all strings for the name (e.g. x_abc_app_old --> x_abc_app_new.)
  6. Re-import the app's XML file via Retrieve Update Sets module, preview and commit.


Again, none of this is supported. If it blows up, ServiceNow is not responsible. And... you always have a backup XML.


View solution in original post

11 REPLIES 11

What this message is telling you is "this app came from another customer/vendor/partner. You cannot do the publish/install because it's not yours."

To make it yours you need to export the entire app to XML, search and replace the vendor code (add the underscores to the search and replace strings just to be extra safe you don't accidentally replace something else), save it, and import it again - poof - it's yours.

There's no other way to do this because it's not something we hear customers doing all the time. If we built something in to the platform, it could have serious security issues for people who build and maintain apps via the store.

what a hack!! xD very nice and dangerous

With Paris, I suspect this will be needed less and less as Source Control can now do delta loads which means it won't uninstall the app before loading a new version.

The side benefit is you may be able to use Source Control to move an app from sub-prod to prod (rather than the repo, which would tell you that it's the wrong company code.) Source control doesn't care about the company code. 

Still experimenting on this one.

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Jose,



I have answered it here.


Re: Migrate scoped app from developer instance to company instance



Let me know if you have any questions.


Hi pradeepksharma thank you so much for your replying! I just checked your solution and woaw thats amazing thank you very much! I'll see If I try both in a Test!