Oracle CRM On Demand Desktop Administration Guide > XML Files Reference > XML Code to Customize Synchronization >

Filter Presets Element of the connector_configuration.xml File


The filter_presets element contains predefined filter criteria. The preset element describes these criteria. The preset element includes a single attribute, name, which defines the name for these criteria. The preset element contains a set of type tags that define filter criteria for each type.

The type element defines the object type to which Oracle CRM On Demand Desktop applies this filter criteria. You must define the object type in the id attribute of this element. The group element describes a group of criteria.

Example Code of the Filter Presets Element

The following code is an example of the usage of the filter_presets element of the connector_configuration.xml file:

<filter_presets>
   <preset name="Test filters">
      <type id="Opportunity">
         <group link="and">
            <binary field="Status" condition="in">
               <value type="array">
                  <value type="string">Accepted</value>
                  <value type="string">Pending</value>
                  <value type="string">Rejected</value>
                  <value type="string">Rerouted</value>
               </value>
            </binary>
         </group>
      </type>
      <type id="Action">
         <group link="and">
            <binary field="Planned" condition="ge">
               <value type="function">today</value>
            </binary>
         </group>
      </type>
   </preset>
</filter_presets>

Example Code to Set the Size and Type of Field

This topic describes code you can use to set the size and type of field. The following code is an example usage of the group element of the connector_configuration.xml file to set the size and type of field:

<group link="and">
   <binary field="FileSize" condition="le">
      <value type="integer">5242880</value>
   </binary>
   <group link="or">
      <binary field="FileExt" condition="eq">
         <value type="string">doc</value>
      </binary>
      <binary field="FileExt" condition="eq">
         <value type="string">docx</value>
      </binary>
      <binary field="FileExt" condition="eq">
         <value type="string">xls</value>
      </binary>
      <binary field="FileExt" condition="eq">
         <value type="string">xlsx</value>
      </binary>
      <binary field="FileExt" condition="eq">
         <value type="string">msg</value>
      </binary>
      <binary field="FileExt" condition="eq">
         <value type="string">txt</value>
      </binary>
      <binary field="FileExt" condition="eq">
         <value type="string">rtf</value>
      </binary>
      <binary field="FileExt" condition="eq">
         <value type="string">html</value>
      </binary>
      <binary field="FileExt" condition="eq">
         <value type="string">ppt</value>
      </binary>
      <binary field="FileExt" condition="eq">
         <value type="string">pptx</value>
      </binary>
      <binary field="FileExt" condition="eq">
         <value type="string">pdf</value>
      </binary>
      <binary field="FileExt" condition="eq">
         <value type="string">mht</value>
      </binary>
      <binary field="FileExt" condition="eq">
         <value type="string">mpp</value>
      </binary>
      <binary field="FileExt" condition="eq">
         <value type="string">vsd</value>
      </binary>
   </group>
</group>

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