Oracle CRM On Demand Desktop Administration Guide > Additional Code in the Customization Example >

XML Code That Maps a Definition for a Custom Object


The following code is an example of a complete mapping definition for Custom Object 1 in the od_basic_mapping.xml file:

<types>
   <type id="Custom Object 1" folder_type="10" display_name="CustomObject1" ver="2">
      <form message_class="IPM.Contact.OnDemand.CustomObject1" display_name="CustomObject1" icon="type_image:Generic:16">OnDemand CustomObject1</form>
      <custom_views default_name = "#view_od_co1">
         <view id="all_customobject1" name ="#view_od_co1"> </view>
      </custom_views>
      <field id="Name">
         <reader>
            <mapi_user>
               <user_field id="od Name" ol_field_type="1"></user_field>
               <convertor>
                  <string/>
               </convertor>
            </mapi_user>
         </reader>
         <writer>
            <outlook_user>
               <user_field id="od Name" ol_field_type="1"></user_field>
               <convertor>
                  <string/>
               </convertor>
            </outlook_user>
         </writer>
      </field>
      <field id="Description">
         <reader>
            <mapi_std>
               <mapi_tag id="0x3A110000"></mapi_tag>
               <convertor>
                  <string/>
               </convertor>
            </mapi_std>
         </reader>
         <writer>
            <outlook_std>
               <outlook_field id="LastName"></outlook_field>
               <convertor>
                  <string/>
               </convertor>
            </outlook_std>
         </writer>
      </field>
   </type>
</types>

If the object you are adding is defined in Oracle CRM Desktop storage, then you must add the following object definition to the <database> element, which you can find in the od_basic_mapping.xml file:

<type id="Custom Object 1" icon="type_image:Custom Object 1:16">
   <field id ="Name">
      <type>
         <simple type="string"/>
      </type>
   </field>
   <field id ="Description">
      <type>
         <simple type="string"/>
      </type>
   </field>
</type>

Oracle CRM On Demand Desktop Administration Guide, Version 5.2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices.