I've followed one of the tutorials to use CSOM (JavaScript) to work on a list. I need to template the site and create new sites from it.
But in my code (CEWP and txt file) I have a hard coded link. Is it somehow possible to change to grab site collection (itdevSC) ?
var siteUrl = '/sites/itdevSC/mysubsite';
var clientContext = new SP.ClientContext(siteUrl);