Want to change the scoped application URL and link it to a new URL Repository.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2024 03:21 AM
I have a requirement where
I want to change the linked source control of a scoped application to a new URL is there any way through which we can do this without affecting the scoped application.
I have gone through some of the community post but it requires deleting the old repository record from 'sys_repo_config' after deleting it we need to link it to new repo in scoped application but are the old repo config data will also be lost so I'm not think deleting it.
I thought to change it via fix script and it did work the URL changed and the data in the repo config record was not deleted but I'm note sure if this is a right way or will there be any issues doing this. So need help from all the folks to guide me how to do this.
Also suggest what we can do If there is no solution.
var gr = new GlideRecord('sys_repo_config');
if(gr.get('1df9d96ac38e12104ea5facc050131df')){
gr.url = 'https://github.com/xyz/hello.git';
gr.update();
}