Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.12.0
-
None
-
Unknown
Description
Salesforce has the notion of polymorphic relationships in which a particular relationship can refer to records of a set of types. E.g., The Owner relationship can often refer to a User, Group or Calendar.
When querying for an object (record) that has a polymorphic relationship, Camel currently deserializes the related object to the superclass AbstractDescribedSObjectBase, throwing away all the subclass-specific data. However, the query result contains type information about the related object, therefore, using this type information, we should be able to deserialize to the specific subclass.