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, privacy policy and cookie policy

Browse other questions tagged or ask your own question.