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
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 402 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 655 Blackbaud Grantmaking™
- 576 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 941 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.7K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 120 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 240 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) 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
- 796 Community News
- 3K Jobs Board
- 54 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
