cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Translate the entire conversation x

Requesting Large number of objects via WRS Rest API

AdamElkins
12-Amethyst

Requesting Large number of objects via WRS Rest API

I am making requests to /Windchill/servlet/odata/v4/DynamicDocMgmt/DynamicDocuments and need to interact with potentially thousands of documents. What we have found is the $top parameter doesn't override the server's page size limit. I also tried a header odata.maxpagesize=1000 but that didnt help either. Any ideas on how to adjust the number of results returned from the API?

ACCEPTED SOLUTION

Accepted Solutions

Hello @AdamElkins ,

The following way you can be able to get more objects

Prefer : odata.maxpagesize=5000

rajeshd105_0-1762334689045.png

Refer below links for more information

 

Windchill REST Services OData Properties 

OData Prefer Headers

View solution in original post

3 REPLIES 3
Fadel
23-Emerald I
(To:AdamElkins)

Check the odata.properties file (located at <Windchill_Home>/codebase/com/ptc/odata/core) no restart needed

Hello @AdamElkins ,

The following way you can be able to get more objects

Prefer : odata.maxpagesize=5000

rajeshd105_0-1762334689045.png

Refer below links for more information

 

Windchill REST Services OData Properties 

OData Prefer Headers

Announcements

Top Tags