How many items can we get from a SharePoint REST API of Projectdata for Task?

 Items we can get from a SharePoint REST API of Projectdata for Tasks of Project guid

300 items we can get by a SharePoint REST API of Projectdata for Task of a Project.

We add a guid of a PWA Project in below REST API.
and run on SharePoint page which has jquery on it.

function getTaskNameWithOutLine(callback) {
  $.ajax({
    url: _spPageContextInfo.webAbsoluteUrl+"/_api/ProjectData/Projects(guid'7fd88051-a185-e811-80ce-00155dbca01a')/Tasks?$Select=TaskName,TaskOutlineNumber", 
    headers: {
      Accept: "application/json; odata=verbose"
     }
   }).success(callback);
}
getTaskNameWithOutLine(function(data){
console.log(data);
});

Final output is shown in below image



Note that _spPageContextInfo.webAbsoluteUrl will work on SharePoint Online Classic Pages
and it will give the absolute URL of Current SharePoint(SP) website

Comments

Popular posts from this blog

Get list item entity type full name of a SharePoint list using REST API

Get SharePoint list name by GUID

Get Current Web Logged In User of SharePoint Site in jQuery