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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

how to make a copy of a custom entity

(0) ShareShare
ReportReport
Posted on by

I have a CRM 2015 On-Premise system.  The server which houses the DB has a Windows Server 2012 Op Sys and uses SQL Server 2012.

I have an entity called 'Application.'  Originally it contained about 100 attributes/fields.

My company hired a vendor to come in and create some enhancements to our existing system.  In doing so, approximately 200+ attributes were added to the 'Application' entity.  The addition of all of these fields caused our system performance to plummet!  I have written several SQL queries that are based on our 'Application' data.  Most of these SQL queries are very simple - 10 fields or less are pulled from the 'Application' entity in order to create a report.  Some of these queries are run quite frequently by our users.  It has been found that these queries are running very slowly - sometimes it takes over a minute to retrieve 6 fields from the ‘Application’ entity!  However, what needs to be remembered is that each record in that entity now contains 300+ attributes.

What I am thinking as a possible solution to our performance problem is to "split" the existing 'Application' entity into several other entities, each identical to the other except for the name, GUID, and whatever else needs to be different in order to uniquely identify each entity.  I would then eliminate from each entity all attributes except those that pertain to a specific "area," thereby reducing the number of attributes on each “new” entity.

Before the addition of the 200+ attributes, our CRM system ran rather efficiently.  Now, not so much.  And, the poor system performance is negatively affecting our company's work performance.  We are a service organization, processing hundreds of clients each day, and we need to be able to process applications as quickly and correctly as possible.

Any suggestions/advice would be GREATLY appreciated!

Thanks,

Michelle

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Hi Michelle,

    It sounds like this is a very good idea! I always try and limit the number of attributes to less than 200. In the meantime you might try in the short-term to create different forms that only show a cut down number of fields depending on what you want to lookup - this would speed up loading/editing of records.

    There isn't any way of creating a copy of the entity unfortunately so you'll need to manually do this and then migrate the data. Kingswaysoft have an excellent SSIS toolkit that will help you move the data from the old entity to the new ones.

    See www.kingswaysoft.com/.../ssis-integration-toolkit-for-microsoft-dynamics-crm

    Hope this helps!

  • Community Member Profile Picture
    on at

    Thanks Scott - I'll check out the link!

  • Suggested answer
    Community Member Profile Picture
    on at

    While not officially supported you can export the entity into a solution. Open the solution zip file and edit the xml file in it changing the entity name and anything else you need to tweak. Them import and publish.

  • Community Member Profile Picture
    on at

    Daniel - sounds interesting!  are you able to provide an example of the "anything else" items?

  • Community Member Profile Picture
    on at

    Remove attributes, change data types, rename objects. Anything you can reverse engineer. Remember, this isn't supported so do it in your dev our test environment. Test it and if all is good you can move it to prod. I have found this to sometimes be a huge dev time saver.

  • Community Member Profile Picture
    on at

    Thanks, Daniel - I will start investigating!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans