I've a project main site and some sub sites of it. In the Main site I've list which contains URL of all sub sites. I need to create office app to retrieve the list items from all sub sites, do some calculation and store it to main site list.
Currently I'm struck with retrieving list items from all sub sites. My current code
var hostsuburl = hostUrl + "/" + oListItem.get_item('ProjectURL') + "/"; var hostsubcontext = ; hostsubcontext.push(new SP.AppContextSite(currentcontext, hostsuburl)); var subweb = hostsubcontext.pop().get_web(); currentcontext.load(subweb, "Title"); alert(subweb.get_title());
projectURL is the column from list(main site) which contains URL of all sub sites. But it's not returning site title. Any help would highly appreciated.