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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Custom Entities or Case Extension Entity?

(0) ShareShare
ReportReport
Posted on by 5

Hello

We have run into an issue where we are close to the max column limit on the Incident entity. We have used Case/Incident for  many different workflows, and have a lot more development work in our backlog. The goal of our institution is to use Dynamics CRM for all customer related workflows and we have many departments/groups who wish to have their own set of workflows.

The question we find ourselves with, is whether to use an approach of Case Extension entities to extend the case entity. This seems to be quite effort intensive and a bit error prone. Basically the idea is we would create a custom entity to store only the extra case fields, then create a html web resource w/ associated JavaScript to pull it into the form on the Case entity. From there the JavaScript will override the submit to save both case and extension, and then pull back related records upon edit. In theory this would work fine, however we are talking about hundreds of fields, with different data types. The amount of custom code will be enormous.

The other option is to use a custom entity for each "group/department" - for example say HR had a bunch of forms and workflows they wanted, then Legal also had their items, and other departments. For each, we could create a set of fields, forms, process flows and such, but each group would be in a separate entity.

The pros to the first option are that all items are still a Case/Incident, making pulling them all together in advanced find or OOB reports possible. The main con though is the huge amount of custom HTML/JavaScript required (we have  a lot of requests for new forms etc. and many can be quite complex with show/hide and such). The second option, we could be up and running quickly.

Which option is more commonly used, which option is more supported by Microsoft? Assuming we plan to upgrade to the newest version at some point, will either option be more or less of a problem in that situation?

any input is appreciated!

thank you

I have the same question (0)
  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    Hi Ikbev,

    I recommend taking the approach of creating a customer entity for each "group/department". This approach will be straightforward to upgrade, does not have the risk of JavaScript deprecation that the other option has, and does not require HTML/JavaScript development so you will be able to get it working faster.

  • lkbev Profile Picture
    5 on at

    thank you Adrian! have you seen anybody pull all records from various entities together in one list or grid? I don't see that this is possible in the OOB solution? I think what we could do is create a report outside of the system querying the DB w/ a union and then pull that in via web resource/iframe.

    I assume there is no way to join both entities to produce one list with common fields (like a sql union) say in advanced find, or views/reports?

    we do like to have a sub-grid of associated Cases/incidents on a customers page- with this approach I think OOB our only option will be multiple sub-grids? and for one sub-grid we would need to do custom work?

    thank you again for your assistance.

  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    Hi Ikbev,

    It is not possible to create a Sub-Grid containing different types of records so you will need to create multiple Sub-Grids to display all of the records on a form. Advanced Find uses FetchXML but FetchXML has no support for UNION operations so you cannot display the records in a single view.

    I would try and display as much of the information as I can on Cases forms and Sub-Grids on these forms and then create a SQL Server Reporting Services (SSRS) or Power BI report to display any other important information.

  • Community Member Profile Picture
    on at

    I have to ask, does your schema hold up to normalization?  Assuming you understand primary keys, are all these data items dependent on the key?  E.g. my car has a color but car color shouldn't be an attribute of me.  You can get away with it until you arrive at your situation in which case you should create a car entity and move all those attributes there.

    You will no longer have a UNION problem because your data will be on related records.

    I don't know what your set of fields contains but, if you choose to use the relational model (as you did by choosing an SQL Server application) you are always better off following relational rules.

    (E.g. Microsoft chose to create a customer address entity rather than add all those fields to Account, Contact and User.)

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans