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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to соunt entity re...
Power Apps
Answered

How to соunt entity records?

(0) ShareShare
ReportReport
Posted on by 264

Hi, guys!

There are more than 50 000 records in the entity. Is there a way to count them?

Xrm.WebApi.online and powerAutomate can process only 5000 records.

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

    Hi @Max77 

    Are you trying to just count the records in the tables overall or are you trying to display a count somewhere?  The easiest way to look at the record counts on all the tables is to connect to them using SQL Server Management Services (SSMS).  https://learn.microsoft.com/en-us/power-apps/developer/data-platform/dataverse-sql-query 

  • Max77 Profile Picture
    264 on at

    @dpoggemann thank you very much! It works.

    One more question pls.

     

    I'm going to create a separate ms sql db to store additional data.

    As I understand it's impossible to make such a query

     

    Select ...   from [mydataverse].[dbo].[entity1]

         left join [myseparatedb].[dbo].[mytable]

            on ....

     

    Which way is better?

    1. Dublicate dataverse entities in my sql db (use powerautomate flow on dataverse entity update/insert), and then exec local query.

    2. Use dataverse vitrual tables placed in my separate sql server, then use local query.

     

     

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    HI @Max77 ,

     

    What are you specifically trying to do?  Is this.a reporting / analytics process? How is the new table going to be utilized within the business process / Power Apps application?  

  • Max77 Profile Picture
    264 on at

    @dpoggemann , I'm going to create an accounting application.
    It includes accounting for valuables in the warehouse,
    also accounting and control of leased equipment.

    A separate database will store all historical data on the arrival, consumption and movement of goods in the warehouse.

     

    For example table "Inventory stocks":
    field RecordType - expense or receipt
    fields "Warehouse", "item", "Date", "Recorder" - are analitic
    fields "Quantity", "Amount" - resources

    So I can evaluate item quantity at any point of time.
    I will use this table to check if quantity is enough to sell and of course the table will be used to build items movement report.

    + Warehouse1 Item1 "2023/06/05" "purchase 1"   3   90
    - Warehouse1 Item1 "2023/06/06" "moving 1"   2   60
    + Warehouse2 Item1 "2023/06/06" "moving 1"   2   60

    So I can see the balance on "2023/06/06" and later
    Warehouse1 Item1   1   30
    Warehouse2 Item1   2   60


    It's not a good way to use Dataverse for this data and it is very difficult and hard to use PA or JS + Xrm.WebApi.online to manipulate DB.

    So i'm going to use Stored SQL procedures and plugins.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#2
Haque Profile Picture

Haque 69

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard