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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

how many records can be added in an CRM

(0) ShareShare
ReportReport
Posted on by 5,514

what is the maximum number of records can be added in mscrm 

we have 5000+ recrods in our mscrm how to know the exact records in my crm

0310.Capture5.JPG

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    it depends on the storage from the hard disk and Database.

  • Verified answer
    sandeepc Profile Picture
    5,514 on at

    then there is no limit>?

    ok is there a way to find out how many records now i have

  • Suggested answer
    Michel van den Brink Profile Picture
    4,697 on at

    Hello,

    There is no real record limit for entities in Dynamics 365. The only maximum is on database size, which is 1 TB.

    If you are using Dynamics 365 Online, you will have a subscription though and you will have a smaller limit. In a default subscription, the maximum database size is 5GB.

    Take a look at this article on the database size:

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/admin/manage-storage 

      

    The limit you are seeing is a limitation of the view you are looking at, which does not allow you to view more than 5000 records at one time. This is due to a limitation in the way the underlying data architecture works.

    I recommend downloading the XrmToolBox from https://www.xrmtoolbox.com/ which contains a tool called 'FetchXML / View Record Counter' this tool allows you to run a query against Dynamics 365 and view how many records there are exactly.

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    How you get the total number, build a report to do that or  use sql query to find out if you are using on prem.

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    if there is no enough storage for the database to store record, then that is a limit. example you have 1 tb, your database used up 1tb, then it will throw you the error.

  • sandeepc Profile Picture
    5,514 on at

    what will be the query?? @wei jie fun as i am using on prem only

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    i am using account as an example

    select count(accountid)

    from filteredaccount

    2352.4.png

  • Verified answer
    Shahbaaz Ansari Profile Picture
    6,211 on at

    Hi CRM Guy,

    Below is the code for getting all the record for an entity. You need to create a console application and put the below code.

    public static List<Entity> RetrieveOpportunity(IOrganizationService service)

           {

               // Query using the paging cookie.

               // Define the paging attributes.

               // The number of records per page to retrieve.

               int queryCount = 5000;

               // Initialize the page number.

               int pageNumber = 1;

               List<Entity> Entities = new List<Entity>();

               var getOpportunities = new QueryExpression();

               getOpportunities.EntityName = "opportunity";

               getOpportunities.ColumnSet = new ColumnSet("opportunityid", "parentaccountid");  

               EntityCollection retrieveOpportunities = service.RetrieveMultiple(getOpportunities);

               // Assign the pageinfo properties to the query expression.

               getOpportunities.PageInfo = new PagingInfo();

               getOpportunities.PageInfo.Count = queryCount;

               getOpportunities.PageInfo.PageNumber = pageNumber;

               // The current paging cookie. When retrieving the first page,

               // pagingCookie should be null.

               getOpportunities.PageInfo.PagingCookie = null;

               while (true)

               {

                   // Retrieve the page.

                   EntityCollection results = service.RetrieveMultiple(getOpportunities);

                   if (results.Entities != null)

                   {

                       Entities.AddRange(results.Entities);

                   }

                   // Check for more records, if it returns true.

                   if (results.MoreRecords)

                   {

                       // Increment the page number to retrieve the next page.

                       getOpportunities.PageInfo.PageNumber++;

                       // Set the paging cookie to the paging cookie returned from current results.

                       getOpportunities.PageInfo.PagingCookie = results.PagingCookie;

                   }

                   else

                   {

                       // If no more records are in the result nodes, exit the loop.

                       break;

                   }

               }

               return Entities;

           }

    If you find it helpful, Please mark as verified.

    Best Regards,

    Shahbaaz

  • sandeepc Profile Picture
    5,514 on at

    thats a great reply @wei jie fun thanks a lot

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 Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans