1

We need to get information from another site collection by jquery in Sharepoint 2010.

        var subFolderContext = new SP.ClientContext('http://xyz:9999/abc');
        var web = subFolderContext.get_web();
        var oList = web.get_lists().getByTitle("EmployeeDetail");
        var query = SP.CamlQuery.createAllFoldersQuery();
        query.set_folderServerRelativeUrl(folderUrl);
        var items = oList.getItems(query);
        subFolderContext.load(oList); 
        subFolderContext.load(items);
        subFolderContext.executeQueryAsync(function (sender, args) { }

However, it's not returning any result.

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.