Shlomi Dvir Posted May 8 Share Posted May 8 The List API has a limit of retrieving only 100 records per API Call. If I have more than 100 records in Sage Intacct, how can I retrieve all the records with one API Call. What is the procedure? Link to comment Share on other sites More sharing options...
Members Sterio, Louis Posted May 9 Members Share Posted May 9 I believe you will need to use the query service for this: https://developer.sage.com/intacct/docs/openapi/common/core-query/tag/Query/ Link to comment Share on other sites More sharing options...
Shlomi Dvir Posted May 10 Author Share Posted May 10 When I tried to use the query service, I am Getting an invalidRequest invalidRequest. Link to comment Share on other sites More sharing options...
Preston, Charlie Posted May 15 Share Posted May 15 Looks like the object needs to be the complete path company-config/department and the comma on line 11 isn't needed. This works for me: { "object": "company-config/department", "fields": [ "id", "name", "status", "href" ], "filters": [ { "$eq": { "status": "active" } } ], "orderBy": [ { "id": "asc" } ] } Link to comment Share on other sites More sharing options...
Preston, Charlie Posted May 15 Share Posted May 15 Also looks like you need to set the "size" parameter to the page size you want and the "start" parameter to the starting position so you can page through the results. { "object": "company-config/department", "fields": [ "id", "name", "status", "href" ], "filters": [ { "$eq": { "status": "active" } } ], "orderBy": [ { "id": "asc" } ], "start" : 1, "size" : 1000 } The response gives you the total number of records, starting position and next position so you can make a subsequent call to retrieve the next page. "ia::meta": { "totalCount": 7, "start": 1, "pageSize": 1000, "next": null, "previous": null } 1 Link to comment Share on other sites More sharing options...
Recommended Posts