Code That Adds a Custom Object Type

To add a custom object type, you add the following code anywhere in the siebel_meta_info.xml file

assist with debugging, it is recommended that you place this code after the last Type definition:

<object TypeId='ChannelPartner' Label='Channel Partner' LabelPlural='Channel 
Partners' EnableGetIDsBatching='true' ViewMode='Sales Rep' IntObjName='Channel 
Partner' SiebMsgXmlElemName='ChannelPartner' 
SiebMsgXmlCollectionElemName='ListOfChannelPartner' >

<field Name='DS Updated' Label='DS Updated' DataType='DTYPE_DATETIME' 
IsFilterable='no' IsHidden='yes' IOElemName='DSUpdated' />

<field Name='Id' Label='Id' IsPrimaryKey='yes' DataType='DTYPE_ID' 
IsFilterable='no' IsHidden='yes' IOElemName='Id'/>

<field Name='Name' Label='Name' DataType='DTYPE_TEXT' IsPartOfUserKey='yes' 
IOElemName='Name' />

<field Name='Location' Label='Location' DataType='DTYPE_TEXT' IsPartOfUserKey='yes' IOElemName='Location'/>

</object>

This code does the following:

  • Uses properties of the integration object and integration component as the values for attributes.

  • References only a few of the many fields that exist in the Channel Partner object in Siebel CRM.

  • Uses the Name and Location fields as parts of the user key. You define the natural key in the connector_configuration.xml file.