GET Period summary (List) - how to iterate to retrieve all records
Hi,
I am trying to get the list of ALL records for GET Period summary (list). I understand that the API return limit is 5000.
However, when I use the offset parameter, it does not return me the exhaustive list of records, it even returns me more records.
Let say that the count is 6200 records, I make a first call for the first records 1000 to 5000 and then for 5001 to 6200, but it actually returns me 10,000 records.
Is there something I am missing?
Thanks,
Pete
Comments
-
Hi @PierreAndre Vungoc - I'm not sure I'm quite following based on your example.
- If there's only 6200 total records, how are 10000 records returned? Do you see that some of the query parameters are ignored?
- Do you have examples of what your initial and subsequent request query strings look like?
I believe you should be able to submit the same query string for subsequent/pagination requests, but additionally supply the offset param which is the starting point of the following requests.
For example:
- First request is generalledger/v1/periodsummary/summaries?fiscal_period_id=id
- Returns 5000 records
- Second request is generalledger/v1/periodsummary/summaries?offset=5000&fiscal_period_id=id
- Should return the remaining 1200 records
It sounds like this is what you are doing, but would be good to confirm.
Thanks!
0 -
Hi , thanks for your answer. Yes makes total sense. There was an issue with my code. So all is good now.
Cheers,
Pete0
Categories
- All Categories
- 6 Blackbaud Community Help
- 209 bbcon®
- 1.4K Blackbaud Altru®
- 394 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 359 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 563 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 242 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 779 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
