Quantcast
Viewing all articles
Browse latest Browse all 10096

Odata row limit task - SPProjectOdataConfiguration

Hello, I'm struggling to return a project with more than 1000 jobs using OData online Project.

By consuming the service it returns me 300 tasks as described in the article:
https://msdn.microsoft.com/en-us/library/office/jj163015.aspx

But the article also says that I can change these settings via the command: Set-SPProjectOdataConfiguration -EntitySetName Task -PageSizeOverride 5000

Does anyone have the script for this setting?

using (var client = new WebClient())
{client.Headers.Add("X-FORMS_BASED_AUTH_ACCEPTED", "f");client.Credentials = credentials;client.Headers.Add(HttpRequestHeader.ContentType, "application/json;odata=verbose");client.Headers.Add(HttpRequestHeader.Accept, "application/json;odata=verbose");var endpointUri = new Uri(webUri, "/sites/PWA/_api/ProjectData/Task");var result = client.DownloadString(endpointUri);

}



Viewing all articles
Browse latest Browse all 10096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>