Code That Configures Synchronization for a Custom Object
To configure synchronization for a custom object, you add the following code to the connector_configuration.xml file:
<type id="ChannelPartner">
<view label="Channel Partner" label_plural="Channel Partners"
small_icon="type_image:Account:16" normal_icon="type_image:Account:24"
large_icon="type_image:Account:48">
</view>
<synchronizer name_format=":[:(Name):]">
<links>
</links>
<natural_keys>
<natural_key>
<field>Name</field>
<field>Location</field>
</natural_key>
</natural_keys>
</synchronizer>
</type>
Note the following:
The value in the type id tag must equal the value in the TypeId object in the meta_info.xml file.
The natural_key tag includes the Name and Location fields as part of the user key.