You need to sign in to do that
Don't have an account?
gsickal
Custom Objects and Inheritance
I am developing an app for the salesforce platform and have a general question about the architecture of custom objects. I want to be able to create different "types" of custom objects which are really more like a "subclass" of one of the standard objects. These custom subtype objects would have (inherit) all the field and methods of the base class, but would also contain their own unique fields, methods, customer links, etc. I want to do this *without* having to add a custom "type" field to the base object and making this type field a picklist of all the available subtypes for the object. Creating the new subclass object with a Master/Detail relationship isn't really a truly accurate design since that relationship implies a one:many relationship between the objects and what I want is a 1:1. In other words, it's not a header object with (possible) multiple detail records relationship, not is it really a lookup type either.
For example, in addition to the "base" Account object, I might want to have "Personal Account" and "Business Account" and "Charity Account" objects all with fields inherited from the Account object, but with their own unique fields as well. Can this be done? If so, what is the best way to do this? If not, would I be better off using a Master/Detail, Lookup, or no relationship at all? thanks
This worked pretty well DevAngel. Thanks!