I'm evaluating the use of CRM 2011 to replace one of our existing LOB apps and have a question regarding custom entities.
We have multiple entities which share some base information, but each entity would require different related entities depending on its 'type'. Also validation rules would change depending on the 'type'. To top it off each client can support different subsets of 'type'.
E.g.
Employee Entity
- Employee Type : Full-time, Part-time, Contract
- Name, Address, Date of Hire etc.
Different types of employees depending on which 'type' is selected.
Full Time:
- Salary
- Benefit (related entities)
- Pension (related entities)
Part Time:
- Hourly rate
- Number of hours / week
Contract:
- Hourly Rate
- Contract Start
- Contract End
- Contract Information (related entities)
- Submitted Timesheets (related entities)
Questions:
- How does one model this sort of thing in Dynamics 2011? Is there support for some form of inheritance?
- Currently I'm thinking of having a process automatically create the related entities depending on "Employee Type" when an Employee is first created. Is there a better way to implement this?
- How would one implement validation for this scenario?