Get total row count from List Single (BETA)?
Hi all
Is there a way to see the TOTAL row count when using List Single (BETA), or do you need to just keep increasing the page number until you get {"count":0,…}?
TIA,
-Joel
Comments
-
I think the definition of Count in this endpoint might be an error. Other list-type endpoints - eg Constituent List, Ledger Summary (List) - provide a count of the total number of available records (after any filters have been applied).
Steve Cinquegrana | CEO and Principal Developer | Protégé Solutions
1 -
Sadly you do need to continue to increase the page number until the count of records is less than 1000 (which signals you got the last page of records). I understand this is less than ideal but it is the best way to maintain existing functionality but also improve performance.
0 -
Jared,
I have seen many other APIs that have a count of total pages in the response to help cycle through the results. Would it be possible to get that implemented? ie. a response of totalPage = n would be great so we don't keep cycling through blindly.
0 -
Unfortunately, it isn't possible to implement this due to the nature of the advanced list system itself. The count property isn't an error, with this endpoint it shows the total count of records in the current result set where each page maxes out at 1000 records.
Each new call will bring back the next set of 1000 from the full result set until there are less than 1000 records left. At that point, the count property will show less than 1000 results, and based on that you know you have all your data.
0 -
Jared,
This assumes that there are more or less than 1000 results. When there are exactly 1000 records, the function will have to be called again for “page 2” which is an unnecessary call just to check for “the end” of the recursion. I hope that the team would be able to find a better solution, at the moment I will be adding logic for recursion until results = 0.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 210 bbcon®
- 1.4K Blackbaud Altru®
- 395 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 649 Blackbaud Grantmaking™
- 567 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 937 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.5K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 247 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 239 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 31 PowerUp Challenges
- 3 (Open) 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
- 783 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)
