Hello All
I have about 1500 sub-folders in a folder within the enterprise workspace. However the following piece of code returns only the first 25 nodes based on the default CS settings. Is there away to fetch all the 1500 folders in one shot. Appreciate your help!
function ListSubFolders(objID)
{
var respData;
$.ajax({
type: "GET",
url : "http://servername/otcs/cs.exe/api/v1/nodes/" + objID + "/nodes",
dataType: "json",
headers: {"otcsticket":otcsticket},
complete: function(xhr, status)
{
var status = xhr.status;
respData = JSON.parse(xhr.responseText);
var dataid;
var len = respData.data.length;
for (i=0;i<respData.data.length;i++)
{
dataid = respData.data[i].id;
//alert(dataid);
}
}
});
}
Thanks
Vijhay Devarajan.