web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Count the number of re...
Power Apps
Unanswered

Count the number of records

(0) ShareShare
ReportReport
Posted on by

Greetings,

 

I've figured out how to filter a table using the Web API. Now I would like to learn how to count the number of records returned from the filter.

 

  1. I can't use $count because it is limited to 5,000 rows
  2. I can't use RetrieveTotalRecordCount because it ignores the filter

How can I count the number of rows returned? I'm sending HTTP requests because that is what I'm familiar with, but if there is another way of getting the number, I'm open to learning that too.

 

Thanks,
Shane.

I have the same question (0)
  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @CShaneGoodman ,

     

    Have you tried to look at FetchXML instead?  https://docs.microsoft.com/en-us/powerapps/developer/data-platform/use-fetchxml-aggregation 

    It is limited to 50K records but hopefully this would meet your needs.

     

  • Ram Prakash Duraisamy Profile Picture
    5,597 Super User 2025 Season 2 on at

    Hello @CShaneGoodman,

     

    You need to user Paging to get more than 5000 records,

     

    Suggestion from my End :

     

    1. Trigger flow and get the Items : https://softchief.com/2021/12/11/retrieve-more-than-5000-records-from-dataverse-or-dynamics-365-in-power-automate-using-fetchxml-paging/

     

    2. Use FetchXML/Query Expression and Use Paging to get Data : https://softchief.com/2021/08/04/read-more-than-5000-records-in-console-app-using-paging-and-cookies-in-dynamics-365/

     

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard