Having consumed the Salesforce.com Partner WSDL , I am working on synchronization between the external system and Salesforce.com. As you probably expect, objects that do not exist by default in Salesforce.com are created as user objects via a graphical interface. Although I had no problems moving the main fields, I had some relationship problems.
Some external relationships of a system are determined by foreign keys that are polymorphic (for example, they can store an identifier for two or more different types). Although I see Salesforce.com referencing in my documentation on how to deal with polymorphic foreign keys in SOQL, I have not found a way to create new polymorphic foreign key fields.
Is there a way to create new polymorphic foreign key fields in Salesforce.com or do you need to create separate foreign key fields for each type that could be referenced?
source share