How can I transfer the application source codes from one instance to another if the application is already published in the application repository?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 04:12 AM
Hi all,
Basic questions. How can I transfer the application source codes from one instance to another if the application is already published in the application repository? What will happen to the published application?
Situation.
There is company 1 with its own instances dev1 test1 prod1
There is a company 2 with its own instances dev2 test2 prod2
They have a common application repository for custom apps.
An application has been developed for Company 1, the source codes of which are located on dev1, and it is published in the application repository.
This application is installed from the application repository on prod1 and works there.
We need to transfer the source code of the application from dev1 to dev2, and then delete it on dev1, and then develop on dev2.
We can migrate the source code using an updates set or GIT.
But we have a published application in the application repository.
What will happen to the published application?
Will it just be overwritten? Or will it be a mistake?
Will we be able to develop the application in two instances?
This will not affect the application running on prod1?
I read the article "How to move Custom Scoped Applications bettween instances" but there are some doubts.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 07:20 AM
Hello,
If those "2" instances are not in the same stack then they don't have a "common application repository for custom apps". That alone is proof they don't.
With that said, you can attempt on dev1 to publish the application to update set (access application page itself in dev1 and use the related links UI Action): https://docs.servicenow.com/bundle/quebec-application-development/page/build/applications/task/t_Pub...
Those instances are not linked and so anything you do on the "2" stack of instances won't affect the "1" stack. If you "delete from dev1" and prod1 is cloned over dev1 at some point, the app will be back...
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2022 01:16 AM
Thanks for your reply
I apologize for the delay in responding.
As for several different instances in the same stack.
It's weird, but it's true.
I see applications published in the application repository from all instances.
I plan to do the following for verification:
I am creating a text application
I publish it in the application repository
I check that the application is visible from all instances
And I'm moving the application sources to another instance group.