﻿<?xml version="1.0" encoding="utf-8"?>
<RuleApplicationDef xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  Revision="114"
  PublicRevision="114"
  Guid="3f14448f-9973-4ba2-8d44-c2f565235241"
  Id="-1"
  Name="DynamicsRules"
  RepositoryAssemblyFileVersion="5.7.2.240"
  LastValidateContentCode="1828384717"
  IsolatedTestDomain="false"
  SchemaGuid="dfe6e19c-0ef2-46d4-a555-79043b9f4235"
  SchemaRevision="1"
  SchemaPublicRevision="1"
  LastValidateDateTimeUtc="2021-08-05T16:07:28.2273883Z">
  <Comments xmlns="http://www.inrule.com/XmlSchema/Schema">This rule application provides basic rule examples to execute against out-of-the-box Dynamics 365 entities.  The two primary rule sets, AccountDefaultRules and ContactDefaultRules can be used to demonstrate rule execution for their associated entity contexts.  These rule sets are pre-configured on the RuleConfigurationEntity to execute via the "Run Rules" button on the corresponding entity form.  

There are additional utility rulesets located in the RuleHelperQueryRules folder that demonstrate executing queries using the RuleHelper endpoint which is provided with the InRule for Microsoft Dynamics CRM Integration Framework.

Please refer to the InRule irX for Microsoft Dynamics 365 Help documentation for further information for authoring rules.  

Testing the RuleApplication:
1. From irVerify - Rule sets may be tested from irVerify by clicking on the "Test" button in the "Dynamics" tab of the irAuthor ribbon.  This tab is only available when the irX for Microsoft Dynamics 365 extension is installed.  
2. From Dynamics -  On either the Account or Contact entity form in Dynamics, click on the "Run Rules" button.  The respective AccountDefaultRules or ContactDefaultRules rules ets will be executed and the results will be displayed on the form.  The "Run Rules" button is available when the InRule for Microsoft Dynamics 365 Solution has been installed from the AppSource.
PLEASE NOTE: This Rule Application will need to be saved to the configured catalog and labeled as "Live" in order to be executed from Dynamics.  

When to Use the Rule Helper:
1. To query CRM data (typically reference data) which is not directly related  (i.e. has no data relationships) and therefore cannot be auto-loaded to the CRM entities defined in the rule application. 
2. To filter the data that InRule is currently loading from Dynamics at runtime. By default, at runtime rule applications pull in all of the data for all entities and their children that are related to the top-level entity in the rule application, filtered only by the various CRM entity relationships which connect those entities.  Please note, this auto-loading behavior can be managed from the Dynamics ribbon on an entity by entity basis.

Example rule sets for using the RuleHelper endpoint and associated user-defined functions to query additional Dynamics data are located in the RuleHelperQueryExamples folder.</Comments>
  <Attributes xmlns="http://www.inrule.com/XmlSchema/Schema">
    <anyType
      xsi:type="CollectionItem">
      <Key>
        <Name>InRule® for Microsoft Dynamics® CRM</Name>
        <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
      </Key>
      <Collection>
        <anyType
          xsi:type="XmlSerializableStringDictionaryItem"
          Key="IsDynamicsRuleApp"
          Value="True" />
      </Collection>
    </anyType>
  </Attributes>
  <UpgraderMessageList xmlns="http://www.inrule.com/XmlSchema/Schema" />
  <RuntimeEngine xmlns="http://www.inrule.com/XmlSchema/Schema">InRule</RuntimeEngine>
  <FeatureVersion xmlns="http://www.inrule.com/XmlSchema/Schema">106</FeatureVersion>
  <CompatibilityVersion xmlns="http://www.inrule.com/XmlSchema/Schema">1</CompatibilityVersion>
  <AuthoringSettings xmlns="http://www.inrule.com/XmlSchema/Schema">
    <SelectedAuthoringItemGuid>49dfe5ac-c3c2-42bb-8d04-88920435b9e1</SelectedAuthoringItemGuid>
    <UseAdvancedXmlOptions>false</UseAdvancedXmlOptions>
    <AllowAccessToParentsInLanguageRules>true</AllowAccessToParentsInLanguageRules>
    <TreeRuleNameVisibility>HideReserved</TreeRuleNameVisibility>
    <CreatedDateTime>2016-09-07T09:11:07.3188342-05:00</CreatedDateTime>
    <ModifiedDateTime>2021-08-05T11:07:28.2464121-05:00</ModifiedDateTime>
    <TargetPlatform>InRule</TargetPlatform>
  </AuthoringSettings>
  <IndentUnboundCollectionXml xmlns="http://www.inrule.com/XmlSchema/Schema">true</IndentUnboundCollectionXml>
  <AllowRuleInactivation xmlns="http://www.inrule.com/XmlSchema/Schema">true</AllowRuleInactivation>
  <UseRuleVersions xmlns="http://www.inrule.com/XmlSchema/Schema">false</UseRuleVersions>
  <UseVersionCreationDates xmlns="http://www.inrule.com/XmlSchema/Schema">false</UseVersionCreationDates>
  <HasContextVersionSettings xmlns="http://www.inrule.com/XmlSchema/Schema">false</HasContextVersionSettings>
  <RunawayCycleCount xmlns="http://www.inrule.com/XmlSchema/Schema">100000</RunawayCycleCount>
  <Timeout xmlns="http://www.inrule.com/XmlSchema/Schema">30000</Timeout>
  <RuntimeErrorHandlingPolicy xmlns="http://www.inrule.com/XmlSchema/Schema">ContinueWithNextRuleSet</RuntimeErrorHandlingPolicy>
  <Entities xmlns="http://www.inrule.com/XmlSchema/Schema">
    <EntityDef
      Revision="1"
      PublicRevision="1"
      Guid="c732bc6f-9d41-4eb2-86b8-462a3f4e85e3"
      Name="Account">
      <Attributes>
        <anyType
          xsi:type="CollectionItem">
          <Key>
            <Name>InRule® for Microsoft Dynamics® CRM</Name>
            <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
          </Key>
          <Collection>
            <anyType
              xsi:type="XmlSerializableStringDictionaryItem"
              Key="CRMEntity"
              Value="account" />
          </Collection>
        </anyType>
      </Attributes>
      <RuleElements>
        <RuleElementDef
          xsi:type="RuleSetDef"
          Revision="1"
          PublicRevision="1"
          Guid="1bfe7c85-80ad-4f9d-93cf-cce569881ca4"
          Name="AccountDefaultRules">
          <Comments>This rule set demonstrates if-then-else logic and field updating when executed against an Account. It also performs an aggregation on the Contacts collection and executes the CaseEscalationRules rule set across all Cases using ExecuteMemberRuleSet.</Comments>
          <FireMode>Explicit</FireMode>
          <RunMode>SequentialRunOnce</RunMode>
          <Rules>
            <RuleElementDef
              xsi:type="DeclareVariableActionDef"
              Revision="1"
              PublicRevision="1"
              Guid="18f42133-e32e-4294-b743-25e8529af859"
              Name="NumberOfContacts"
              DataType="Integer" />
            <RuleElementDef
              xsi:type="LanguageRuleDef"
              Revision="1"
              PublicRevision="1"
              Guid="184e05bf-de83-4aac-9adf-0df9d523f3ad"
              Name="NumberOfContactsRule">
              <Comments>This rule will fire a notification displaying the number of contacts associated to the account that the rule is executed against. It will then execute the ContactDefaultRules for each contact. </Comments>
              <Attributes>
                <anyType
                  xsi:type="CollectionItem">
                  <Key>
                    <Name>ReservedAttributeTokenKey</Name>
                    <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                  </Key>
                  <Collection>
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0"
                      Value="ActionSetDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.0"
                      Value="ActionSetDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0"
                      Value="SetValueIntegerAssignableInteger" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.0"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1"
                      Value="DynamicsRules.Account.RuleSets.AccountDefaultRules._nullVocabSurrogate.NumberOfContacts.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.2"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3"
                      Value="ColCountNumber" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3.0"
                      Value="ColCountWhereNumber" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3.1"
                      Value="DynamicsRules.Account.Contacts.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1"
                      Value="IfThenElseDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.0"
                      Value="IfThenDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.1"
                      Value="ConditionGroupTemplateSingleCondition" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.1.0"
                      Value="CompareNumber" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.1.0.0"
                      Value="DynamicsRules.Account.RuleSets.AccountDefaultRules._nullVocabSurrogate.NumberOfContacts.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.1.0.1"
                      Value="Comparison_eq" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.1.0.2"
                      Value="IntegerDesigner" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.2"
                      Value="IfThenDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.3.0"
                      Value="FireNotificationTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.3.0.0"
                      Value="FireNotificationWithSettingsTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.3.0.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.3.0.1.0"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.3.0.1.0.0"
                      Value="StringDesigner" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.3.0.1.0.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.3.0.1.0.2"
                      Value="DynamicsRules.Account.AccountName.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.3.0.1.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.3.0.1.2"
                      Value="StringDesigner" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.4"
                      Value="IfThenElseDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.0"
                      Value="FireNotificationTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.0.0"
                      Value="FireNotificationWithSettingsTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.0.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.0.1.0"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.0.1.0.0"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.0.1.0.0.0"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.0.1.0.0.0.0"
                      Value="StringDesigner" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.0.1.0.0.0.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.0.1.0.0.0.2"
                      Value="DynamicsRules.Account.AccountName.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.0.1.0.0.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.0.1.0.0.2"
                      Value="StringDesigner" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.0.1.0.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.0.1.0.2"
                      Value="DynamicsRules.Account.RuleSets.AccountDefaultRules._nullVocabSurrogate.NumberOfContacts.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.0.1.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.0.1.2"
                      Value="StringDesigner" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.1"
                      Value="ExecuteMemberRuleSetDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.1.0"
                      Value="ExecuteMemberRuleSetDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.1.1"
                      Value="DynamicsRules.Contact.RuleSets.ContactDefaultRules.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.1.2"
                      Value="ExecuteMemberRuleSetDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.5.1.3"
                      Value="DynamicsRules.Account.Contacts.Implicit" />
                  </Collection>
                </anyType>
              </Attributes>
              <RuleElement
                xsi:type="SimpleRuleDef"
                Revision="1"
                PublicRevision="1"
                Guid="9baa4997-1827-4122-b7ff-002428f8e240"
                Name="NumberOfContactsRule">
                <Condition>
                  <ReturnType>Boolean</ReturnType>
                  <FormulaText>true</FormulaText>
                </Condition>
                <SubRules>
                  <RuleElementDef
                    xsi:type="SetValueActionDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="99e3d77a-67f6-489e-999e-e2ef8ad77f0c"
                    Name="SetValue2">
                    <Element>
                      <FormulaText>NumberOfContacts</FormulaText>
                    </Element>
                    <Value>
                      <FormulaText>Count(Contacts)</FormulaText>
                    </Value>
                  </RuleElementDef>
                  <RuleElementDef
                    xsi:type="ExclusiveRuleDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="08f75970-35b0-4c50-992a-e150bc0cefbf"
                    Name="Rule1">
                    <DefaultSubRulesRoot
                      Guid="7d09a45d-540d-4809-863a-fa60208095ba"
                      Name="Otherwise" />
                    <Conditions>
                      <SimpleRuleDef
                        Revision="1"
                        PublicRevision="1"
                        Guid="d83a6f77-6fec-46bb-97ff-2fab52eaafd3"
                        Name="If_Then1">
                        <Condition>
                          <ReturnType>Boolean</ReturnType>
                          <FormulaText>NumberOfContacts = 0</FormulaText>
                        </Condition>
                        <SubRules>
                          <RuleElementDef
                            xsi:type="FireNotificationActionDef"
                            Revision="1"
                            PublicRevision="1"
                            Guid="3750b30d-fbb1-45f6-b301-3e3c1e3f4299"
                            Name="FireNotification1">
                            <NotificationType>Informational</NotificationType>
                            <NotificationMessage>
                              <FormulaParseFormat>Token</FormulaParseFormat>
                              <FormulaText>&lt;%"NumberOfContactsRule - " &amp; AccountName &amp; " Account has no Contacts."%&gt;</FormulaText>
                            </NotificationMessage>
                          </RuleElementDef>
                        </SubRules>
                        <HasContextVersionSettings>false</HasContextVersionSettings>
                      </SimpleRuleDef>
                    </Conditions>
                    <DefaultSubRules>
                      <RuleElementDef
                        xsi:type="FireNotificationActionDef"
                        Revision="1"
                        PublicRevision="1"
                        Guid="231ee206-9425-4766-94db-e0d843e3ec58"
                        Name="Fire_Notification1">
                        <NotificationType>Informational</NotificationType>
                        <NotificationMessage>
                          <FormulaParseFormat>Token</FormulaParseFormat>
                          <FormulaText>&lt;%"NumberOfContactsRule - " &amp; AccountName &amp; " Account has " &amp; NumberOfContacts &amp; " Contacts."%&gt;</FormulaText>
                        </NotificationMessage>
                      </RuleElementDef>
                      <RuleElementDef
                        xsi:type="ExecuteMemberRuleSetActionDef"
                        Revision="1"
                        PublicRevision="1"
                        Guid="c0a53422-2b04-4f89-8c7d-9ac79e393825"
                        Name="ExecuteMemberRuleSet1">
                        <Collection>
                          <FormulaText>Contacts</FormulaText>
                        </Collection>
                        <RuleSet>
                          <FormulaText>ContactDefaultRules</FormulaText>
                        </RuleSet>
                        <FilteredBy>
                          <FormulaText />
                        </FilteredBy>
                      </RuleElementDef>
                    </DefaultSubRules>
                    <HasContextVersionSettings>false</HasContextVersionSettings>
                  </RuleElementDef>
                </SubRules>
                <HasContextVersionSettings>false</HasContextVersionSettings>
              </RuleElement>
              <HasContextVersionSettings>false</HasContextVersionSettings>
            </RuleElementDef>
            <RuleElementDef
              xsi:type="LanguageRuleDef"
              Revision="1"
              PublicRevision="1"
              Guid="229caad4-6485-4cc6-940e-b20c0a9d0c2d"
              Name="DescriptionRule">
              <Comments>This rule will update the Description attribute on the account that the rule is run against to display the date/time at which the rule was run. </Comments>
              <Attributes>
                <anyType
                  xsi:type="CollectionItem">
                  <Key>
                    <Name>ReservedAttributeTokenKey</Name>
                    <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                  </Key>
                  <Collection>
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0"
                      Value="ActionSetDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.0"
                      Value="ActionSetDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0"
                      Value="SetValueStringAssignableString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.0"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1"
                      Value="DynamicsRules.Account.Description.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.2"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3.0"
                      Value="DynamicsRules.Account.Description.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3.2"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3.2.0"
                      Value="StringDesigner" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3.2.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3.2.2"
                      Value="ExpressionDesignerString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3.2.2.0"
                      Value="ExpressionValue" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1"
                      Value="FireNotificationTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.0"
                      Value="FireNotificationWithSettingsTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.1"
                      Value="StringDesigner" />
                  </Collection>
                </anyType>
              </Attributes>
              <RuleElement
                xsi:type="SimpleRuleDef"
                Revision="1"
                PublicRevision="1"
                Guid="bba750c2-7046-4c70-bf58-9f00557e0ea7"
                Name="DescriptionRule">
                <Condition>
                  <ReturnType>Boolean</ReturnType>
                  <FormulaText>true</FormulaText>
                </Condition>
                <SubRules>
                  <RuleElementDef
                    xsi:type="SetValueActionDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="b629b182-6ce7-4705-a9d1-63fe2271d737"
                    Name="SetValue1">
                    <Element>
                      <FormulaText>Description</FormulaText>
                    </Element>
                    <Value>
                      <FormulaText>Description &amp; (" --- updated from rules on " &amp; _fx(Now()))</FormulaText>
                    </Value>
                  </RuleElementDef>
                  <RuleElementDef
                    xsi:type="FireNotificationActionDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="64d72da8-4ccd-46fd-a68c-90b986a1de24"
                    Name="FireNotification2">
                    <NotificationType>Informational</NotificationType>
                    <NotificationMessage>
                      <FormulaParseFormat>Literal</FormulaParseFormat>
                      <FormulaText>DescriptionRule - this rule updates the Account Description.</FormulaText>
                    </NotificationMessage>
                  </RuleElementDef>
                </SubRules>
                <HasContextVersionSettings>false</HasContextVersionSettings>
              </RuleElement>
              <HasContextVersionSettings>false</HasContextVersionSettings>
            </RuleElementDef>
            <RuleElementDef
              xsi:type="ExecuteMemberRuleSetActionDef"
              Revision="1"
              PublicRevision="1"
              Guid="19468f46-08f9-4451-a9f3-e1709427c7f8"
              Name="ExecuteRuleSet1">
              <Collection>
                <FormulaText>Cases</FormulaText>
              </Collection>
              <RuleSet>
                <FormulaText>CaseEscalationRules</FormulaText>
              </RuleSet>
              <FilteredBy>
                <FormulaText />
              </FilteredBy>
            </RuleElementDef>
          </Rules>
          <HasContextVersionSettings>false</HasContextVersionSettings>
        </RuleElementDef>
        <RuleElementDef
          xsi:type="RuleSetDef"
          Revision="1"
          PublicRevision="1"
          Guid="affdb39f-d070-435b-94d3-71f05dd3d0a9"
          Name="AccountValidateDescription">
          <Comments>This rule set provides an example on how to setup a validation rule for the purpose of verifying specific data validation standards you wish to enforce.</Comments>
          <FireMode>Explicit</FireMode>
          <RunMode>SequentialRunOnce</RunMode>
          <Rules>
            <RuleElementDef
              xsi:type="LanguageRuleDef"
              Revision="1"
              PublicRevision="1"
              Guid="6aab8a9a-585f-4622-8661-a3a9294aa137"
              Name="ValidationRule">
              <Comments>This rule will check to see if the Description attribute of the account that the rule is executed against is empty, and if it is, will display a warning that Description  requires a value.</Comments>
              <Attributes>
                <anyType
                  xsi:type="CollectionItem">
                  <Key>
                    <Name>ReservedAttributeTokenKey</Name>
                    <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                  </Key>
                  <Collection>
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0"
                      Value="ActionSetDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.0"
                      Value="ActionSetDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0"
                      Value="IfThenDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.0"
                      Value="IfThenDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1"
                      Value="ConditionGroupTemplateSingleCondition" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.0"
                      Value="IsNullOrEmptyField" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.0.0"
                      Value="DynamicsRules.Account.Description.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.0.1"
                      Value="IsNullOrEmptyField" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.2"
                      Value="IfThenDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3.0"
                      Value="MarkInvalidDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3.0.0"
                      Value="MarkInvalidDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3.0.1"
                      Value="DynamicsRules.Account.Description.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3.0.2"
                      Value="MarkInvalidDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3.0.3"
                      Value="StringDesigner" />
                  </Collection>
                </anyType>
              </Attributes>
              <RuleElement
                xsi:type="SimpleRuleDef"
                Revision="1"
                PublicRevision="1"
                Guid="746a2c71-ce69-4da1-bad2-76e80922421f"
                Name="ValidationRule">
                <Condition>
                  <ReturnType>Boolean</ReturnType>
                  <FormulaText>true</FormulaText>
                </Condition>
                <SubRules>
                  <RuleElementDef
                    xsi:type="SimpleRuleDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="d4628a7e-a9f6-4558-b939-2fea2898fb4d"
                    Name="Rule1">
                    <Condition>
                      <ReturnType>Boolean</ReturnType>
                      <FormulaText>IsNullOrEmpty(Description)</FormulaText>
                    </Condition>
                    <SubRules>
                      <RuleElementDef
                        xsi:type="SetFieldInvalidActionDef"
                        Revision="1"
                        PublicRevision="1"
                        Guid="0153a660-19dd-4b4b-a287-48ec6e6e8e8a"
                        Name="SetFieldInvalid1">
                        <Message>
                          <FormulaParseFormat>Literal</FormulaParseFormat>
                          <FormulaText>Description must have a value.</FormulaText>
                        </Message>
                        <FieldName>Description</FieldName>
                      </RuleElementDef>
                    </SubRules>
                    <HasContextVersionSettings>false</HasContextVersionSettings>
                  </RuleElementDef>
                </SubRules>
                <HasContextVersionSettings>false</HasContextVersionSettings>
              </RuleElement>
              <HasContextVersionSettings>false</HasContextVersionSettings>
            </RuleElementDef>
          </Rules>
          <HasContextVersionSettings>false</HasContextVersionSettings>
        </RuleElementDef>
        <RuleElementDef
          xsi:type="RuleSetDef"
          Revision="1"
          PublicRevision="1"
          Guid="2b502b85-6d1b-4cdb-bee3-0ce87bbf1ebe"
          Name="AccountNotificationExample">
          <Comments>This rule set provides examples on how to display different notification types as the result of executing a rule. Different notification types include Informationals, Warnings, and Errors.</Comments>
          <FireMode>Explicit</FireMode>
          <RunMode>SequentialRunOnce</RunMode>
          <Rules>
            <RuleElementDef
              xsi:type="LanguageRuleDef"
              Revision="1"
              PublicRevision="1"
              Guid="033d913e-9256-49cf-a21e-79a3ccf9cba0"
              Name="InfoNotificationRule">
              <Comments>This rule will fire an information notification</Comments>
              <Attributes>
                <anyType
                  xsi:type="CollectionItem">
                  <Key>
                    <Name>ReservedAttributeTokenKey</Name>
                    <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                  </Key>
                  <Collection>
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0"
                      Value="FireNotificationWithSettingsTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.0"
                      Value="FireNotificationWithSettingsTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1"
                      Value="StringDesigner" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.2"
                      Value="FireNotificationWithSettingsTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.0"
                      Value="NotificationTypeTemplateNotificationType" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.0.0"
                      Value="NotificationTypeTemplateNotificationType" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.0.1"
                      Value="InformationalNotificationTypeTemplate" />
                  </Collection>
                </anyType>
              </Attributes>
              <RuleElement
                xsi:type="FireNotificationActionDef"
                Revision="1"
                PublicRevision="1"
                Guid="0c4ede0f-9d07-4596-9529-54d4031fbec1"
                Name="InfoNotificationRule">
                <NotificationType>Informational</NotificationType>
                <NotificationMessage>
                  <FormulaParseFormat>Literal</FormulaParseFormat>
                  <FormulaText>InfoNotificationRule - This is an example informational message.</FormulaText>
                </NotificationMessage>
              </RuleElement>
              <HasContextVersionSettings>false</HasContextVersionSettings>
            </RuleElementDef>
            <RuleElementDef
              xsi:type="LanguageRuleDef"
              Revision="1"
              PublicRevision="1"
              Guid="8b90a552-0100-44c1-a48e-aeb967507926"
              Name="WarningNotificationRule">
              <Comments>This rule will fire a warning notification</Comments>
              <Attributes>
                <anyType
                  xsi:type="CollectionItem">
                  <Key>
                    <Name>ReservedAttributeTokenKey</Name>
                    <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                  </Key>
                  <Collection>
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0"
                      Value="FireNotificationWithSettingsTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.0"
                      Value="FireNotificationWithSettingsTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1"
                      Value="StringDesigner" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.2"
                      Value="FireNotificationWithSettingsTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.0"
                      Value="NotificationTypeTemplateNotificationType" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.0.0"
                      Value="NotificationTypeTemplateNotificationType" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.0.1"
                      Value="WarningNotificationTypeTemplate" />
                  </Collection>
                </anyType>
              </Attributes>
              <RuleElement
                xsi:type="FireNotificationActionDef"
                Revision="1"
                PublicRevision="1"
                Guid="7b559cae-d5ee-41be-9149-d77659ce5544"
                Name="WarningNotificationRule">
                <NotificationType>Warning</NotificationType>
                <NotificationMessage>
                  <FormulaParseFormat>Literal</FormulaParseFormat>
                  <FormulaText>WarningNotificationRule - This is an example warning message.</FormulaText>
                </NotificationMessage>
              </RuleElement>
              <HasContextVersionSettings>false</HasContextVersionSettings>
            </RuleElementDef>
            <RuleElementDef
              xsi:type="LanguageRuleDef"
              Revision="1"
              PublicRevision="1"
              Guid="16125118-8e2e-4b58-b7fe-a7e5d61b741f"
              Name="ErrorNotificationRule">
              <Comments>This rule will fire an error notification</Comments>
              <Attributes>
                <anyType
                  xsi:type="CollectionItem">
                  <Key>
                    <Name>ReservedAttributeTokenKey</Name>
                    <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                  </Key>
                  <Collection>
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0"
                      Value="FireNotificationWithSettingsTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.0"
                      Value="FireNotificationWithSettingsTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1"
                      Value="StringDesigner" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.2"
                      Value="FireNotificationWithSettingsTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.0"
                      Value="NotificationTypeTemplateNotificationType" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.0.0"
                      Value="NotificationTypeTemplateNotificationType" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.0.1"
                      Value="ErrorNotificationTypeTemplate" />
                  </Collection>
                </anyType>
              </Attributes>
              <RuleElement
                xsi:type="FireNotificationActionDef"
                Revision="1"
                PublicRevision="1"
                Guid="991545ff-1164-46da-923d-91b89dd39a55"
                Name="ErrorNotificationRule">
                <NotificationType>Error</NotificationType>
                <NotificationMessage>
                  <FormulaParseFormat>Literal</FormulaParseFormat>
                  <FormulaText>ErrorNotificationRule - This is an example error message.</FormulaText>
                </NotificationMessage>
              </RuleElement>
              <HasContextVersionSettings>false</HasContextVersionSettings>
            </RuleElementDef>
          </Rules>
          <HasContextVersionSettings>false</HasContextVersionSettings>
        </RuleElementDef>
        <RuleElementDef
          xsi:type="RuleSetFolderDef"
          Revision="1"
          PublicRevision="1"
          Guid="023e390f-53e4-42b9-b80b-5a772f039347"
          Name="RuleHelperQueryExamples">
          <Comments>These RuleSets provide various examples of how to leverage the InRule RuleHelper to execute  User-Defined Functions</Comments>
          <RuleSets>
            <RuleSetDefBase
              xsi:type="RuleSetDef"
              Revision="2"
              PublicRevision="2"
              Guid="cdeffd23-a282-4820-9a1a-c8e55513bd70"
              Name="QueryContacts_WithFilter">
              <Comments>This rule set provides an example of calling the RuleHelper QueryCollection method with a filter.</Comments>
              <FireMode>Explicit</FireMode>
              <RunMode>SequentialRunOnce</RunMode>
              <Rules>
                <RuleElementDef
                  xsi:type="LanguageRuleDef"
                  Revision="1"
                  PublicRevision="1"
                  Guid="03f2516b-43dc-4853-aebc-6b6a6ca8bfe3"
                  Name="Call_QueryCollection">
                  <Comments>This rule will return all contacts in the QueryContacts collection that contain 'Manager' in the JobTitle.  See the Deployment Guide for the list of expressions that can be used in the query filter. </Comments>
                  <Attributes>
                    <anyType
                      xsi:type="CollectionItem">
                      <Key>
                        <Name>ReservedAttributeTokenKey</Name>
                        <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                      </Key>
                      <Collection>
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryCollection(&lt;Arg Name=&quot;CollectionName&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.0"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryCollection(&lt;Arg Name=&quot;CollectionName&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryCollection(&lt;Arg Name=&quot;CollectionName&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.2"
                          Value="StringDesigner" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.3"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryCollection(&lt;Arg Name=&quot;CollectionName&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.4"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryContact(&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.5"
                          Value="StringDesigner" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.6"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryContact(&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                      </Collection>
                    </anyType>
                  </Attributes>
                  <RuleElement
                    xsi:type="ExecuteMethodActionDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="c5d462d2-85bc-4080-807c-11e12924b6f8"
                    Name="Call_QueryCollection">
                    <AliasName>RuleHelper</AliasName>
                    <MethodName>QueryCollection</MethodName>
                    <MethodReturnAssignTo />
                    <ParameterValues>
                      <ExecuteMethodActionParamDef
                        Name="CollectionName">
                        <FullTypeName>System.String</FullTypeName>
                        <IsOut>false</IsOut>
                        <ArgValue>
                          <FormulaText>"QueriedContacts"</FormulaText>
                        </ArgValue>
                      </ExecuteMethodActionParamDef>
                      <ExecuteMethodActionParamDef
                        Name="Filter">
                        <FullTypeName>System.String</FullTypeName>
                        <IsOut>false</IsOut>
                        <ArgValue>
                          <FormulaText>"Contains(JobTitle, 'Manager')"</FormulaText>
                        </ArgValue>
                      </ExecuteMethodActionParamDef>
                    </ParameterValues>
                  </RuleElement>
                  <HasContextVersionSettings>false</HasContextVersionSettings>
                </RuleElementDef>
              </Rules>
              <HasContextVersionSettings>false</HasContextVersionSettings>
            </RuleSetDefBase>
            <RuleSetDefBase
              xsi:type="RuleSetDef"
              Revision="1"
              PublicRevision="1"
              Guid="d8713ebe-a358-4f39-a558-514f53c25a4e"
              Name="QueryContact_SetValue">
              <Comments>This rule set provides an example of how to set a value based on the result of a queried entity. A UDF must be defined for each type of entity used in a single entity query with a return set to that entity type.  The QueryContact UDF is provided as an example. </Comments>
              <FireMode>Explicit</FireMode>
              <RunMode>SequentialRunOnce</RunMode>
              <Rules>
                <RuleElementDef
                  xsi:type="SetValueActionDef"
                  Revision="1"
                  PublicRevision="1"
                  Guid="264acdba-6d65-47eb-8a95-a83ae10614ea"
                  Name="SetValue1">
                  <Comments>This rule will set the value of the QueriedContact entity to the returned entity from the QueryContact RuleHelper function.</Comments>
                  <Element>
                    <FormulaText>QueriedContact</FormulaText>
                  </Element>
                  <Value
                    LastAuthoringView="Syntax">
                    <FormulaText>RuleHelper.QueryContact("FirstName='Susan'")</FormulaText>
                  </Value>
                </RuleElementDef>
              </Rules>
              <HasContextVersionSettings>false</HasContextVersionSettings>
            </RuleSetDefBase>
            <RuleSetDefBase
              xsi:type="RuleSetDef"
              Revision="1"
              PublicRevision="1"
              Guid="ffefa27c-3d7d-40a4-98c0-734b93a9d47e"
              Name="QueryContact_SetValueWithVocabulary">
              <Comments>This rule set provides an example of querying an individual Contact using a Vocabulary template.  A User-defined function must be setup for each type of entity used for a single entity query, in this case the QueryContact has been setup as an example.</Comments>
              <FireMode>Explicit</FireMode>
              <RunMode>SequentialRunOnce</RunMode>
              <Rules>
                <RuleElementDef
                  xsi:type="LanguageRuleDef"
                  Revision="1"
                  PublicRevision="1"
                  Guid="cc8f872d-bb5f-4a9e-b40e-7ee674c468c9"
                  Name="Call_QueryContact">
                  <Attributes>
                    <anyType
                      xsi:type="CollectionItem">
                      <Key>
                        <Name>ReservedAttributeTokenKey</Name>
                        <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                      </Key>
                      <Collection>
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0"
                          Value="SetValueDynamicsRules.Contact" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.0"
                          Value="SetValueDynamicsRules.Subject" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1"
                          Value="DynamicsRules.Account.QueriedContact.Implicit" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.2"
                          Value="SetValueDynamicsRules.Subject" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.3"
                          Value="DynamicsRules.VocabularyDef1.GetContactTemplateDynamicsRules.VocabularyDef1.GetContactTemplate0" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.3.0"
                          Value="DynamicsRules.VocabularyDef1.GetContactTemplateDynamicsRules.VocabularyDef1.GetContactTemplate0" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.3.1"
                          Value="StringDesigner" />
                      </Collection>
                    </anyType>
                  </Attributes>
                  <RuleElement
                    xsi:type="SetValueActionDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="6054c08c-5acf-44b7-99f8-e9849ce22292"
                    Name="Call_QueryContact">
                    <Element>
                      <FormulaText>QueriedContact</FormulaText>
                    </Element>
                    <Value>
                      <FormulaText>GetContact(filter:"FirstName = 'Susan'")</FormulaText>
                    </Value>
                  </RuleElement>
                  <HasContextVersionSettings>false</HasContextVersionSettings>
                </RuleElementDef>
              </Rules>
              <HasContextVersionSettings>false</HasContextVersionSettings>
            </RuleSetDefBase>
            <RuleSetDefBase
              xsi:type="RuleSetDef"
              Revision="2"
              PublicRevision="2"
              Guid="2f9cbff7-88f5-4564-953b-370250bf253c"
              Name="QueryCases_ForThisAccount">
              <Comments>This rule set will load all Cases associated with the Account using the LoadChildCollection UDF.  This is intended to be used when 'Auto Load' is turned off in order to conditionally load a mapped child collection.  Please note, in this scenario the collection must be an actual Dynamics relationship as compared to an unbound collection.  </Comments>
              <FireMode>Explicit</FireMode>
              <RunMode>SequentialRunOnce</RunMode>
              <Rules>
                <RuleElementDef
                  xsi:type="LanguageRuleDef"
                  Revision="1"
                  PublicRevision="1"
                  Guid="02f3f1bb-8f33-47a7-9280-f4e0b153142c"
                  Name="Call_LoadChildCollection">
                  <Comments>This rule will load all Cases associated with the account. </Comments>
                  <Attributes>
                    <anyType
                      xsi:type="CollectionItem">
                      <Key>
                        <Name>ReservedAttributeTokenKey</Name>
                        <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                      </Key>
                      <Collection>
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.LoadChildCollection(&lt;Arg Name=&quot;CollectionName&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.0"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.LoadChildCollection(&lt;Arg Name=&quot;CollectionName&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryCollection(&lt;Arg Name=&quot;CollectionName&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.2"
                          Value="StringDesigner" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.3"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryContact(&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                      </Collection>
                    </anyType>
                  </Attributes>
                  <RuleElement
                    xsi:type="ExecuteMethodActionDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="4df06eab-27a8-426a-ae63-3facf1a50e83"
                    Name="Call_LoadChildCollection">
                    <AliasName>RuleHelper</AliasName>
                    <MethodName>LoadChildCollection</MethodName>
                    <MethodReturnAssignTo />
                    <ParameterValues>
                      <ExecuteMethodActionParamDef
                        Name="CollectionName">
                        <FullTypeName>System.String</FullTypeName>
                        <IsOut>false</IsOut>
                        <ArgValue>
                          <FormulaText>"Cases"</FormulaText>
                        </ArgValue>
                      </ExecuteMethodActionParamDef>
                    </ParameterValues>
                  </RuleElement>
                  <HasContextVersionSettings>false</HasContextVersionSettings>
                </RuleElementDef>
              </Rules>
              <HasContextVersionSettings>false</HasContextVersionSettings>
            </RuleSetDefBase>
            <RuleSetDefBase
              xsi:type="RuleSetDef"
              Revision="1"
              PublicRevision="2"
              Guid="e7066867-c1be-4841-b596-17db8a60971a"
              Name="QueryCases_ForSubject">
              <Comments>This rule set will load all Cases matching the Subject filter.</Comments>
              <FireMode>Explicit</FireMode>
              <RunMode>SequentialRunOnce</RunMode>
              <Rules>
                <RuleElementDef
                  xsi:type="DeclareVariableActionDef"
                  Revision="1"
                  PublicRevision="1"
                  Guid="fbec7532-2412-4207-bf36-7ff2eec4f98a"
                  Name="subject"
                  DataType="String" />
                <RuleElementDef
                  xsi:type="LanguageRuleDef"
                  Revision="1"
                  PublicRevision="1"
                  Guid="f5f507fc-bd2b-4291-aa2f-57dde03e87fb"
                  Name="Call_QueryCollection">
                  <Comments>This rule will load all Cases matching the filter.</Comments>
                  <Attributes>
                    <anyType
                      xsi:type="CollectionItem">
                      <Key>
                        <Name>ReservedAttributeTokenKey</Name>
                        <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                      </Key>
                      <Collection>
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0"
                          Value="ActionSetDefault" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.0"
                          Value="ActionSetDefault" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.0"
                          Value="SetValueStringAssignableString" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.0.0"
                          Value="SetValueDynamicsRules.Subject" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.0.1"
                          Value="DynamicsRules.Account.RuleSets.QueryCases_ForSubject._nullVocabSurrogate.subject.Implicit" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.0.2"
                          Value="SetValueDynamicsRules.Subject" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.0.3"
                          Value="StringDesigner" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.1"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryCollection(&lt;Arg Name=&quot;CollectionName&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.1.0"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryCollection(&lt;Arg Name=&quot;CollectionName&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.1.1"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryCollection(&lt;Arg Name=&quot;CollectionName&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.1.2"
                          Value="StringDesigner" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.1.3"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryContact(&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;OrderBy&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.1.4"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryContact(&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;OrderBy&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.1.5"
                          Value="ampStringTemplateString" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.1.5.0"
                          Value="StringDesigner" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.1.5.1"
                          Value="ampStringTemplateString" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.1.5.2"
                          Value="ampStringTemplateString" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.1.5.2.0"
                          Value="DynamicsRules.Account.RuleSets.QueryCases_ForSubject._nullVocabSurrogate.subject.Implicit" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.1.5.2.1"
                          Value="ampStringTemplateString" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.1.5.2.2"
                          Value="StringDesigner" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1.1.6"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryContact(&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;OrderBy&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                      </Collection>
                    </anyType>
                  </Attributes>
                  <RuleElement
                    xsi:type="SimpleRuleDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="8302dacc-d053-4269-bd69-9838deffd493"
                    Name="Call_QueryCollection">
                    <Condition>
                      <ReturnType>Boolean</ReturnType>
                      <FormulaText>true</FormulaText>
                    </Condition>
                    <SubRules>
                      <RuleElementDef
                        xsi:type="SetValueActionDef"
                        Revision="1"
                        PublicRevision="1"
                        Guid="25f59dc4-1ccd-4cb7-b80b-9cbc9e5501ab"
                        Name="SetValue1">
                        <Element>
                          <FormulaText>subject</FormulaText>
                        </Element>
                        <Value>
                          <FormulaText>"Delivery"</FormulaText>
                        </Value>
                      </RuleElementDef>
                      <RuleElementDef
                        xsi:type="ExecuteMethodActionDef"
                        Revision="1"
                        PublicRevision="1"
                        Guid="06991ae7-4ff5-4bc9-a3fd-207ee2a94ae6"
                        Name="ExecuteMethod2">
                        <AliasName>RuleHelper</AliasName>
                        <MethodName>QueryCollection</MethodName>
                        <MethodReturnAssignTo />
                        <ParameterValues>
                          <ExecuteMethodActionParamDef
                            Name="CollectionName">
                            <FullTypeName>System.String</FullTypeName>
                            <IsOut>false</IsOut>
                            <ArgValue>
                              <FormulaText>"QueriedCases"</FormulaText>
                            </ArgValue>
                          </ExecuteMethodActionParamDef>
                          <ExecuteMethodActionParamDef
                            Name="Filter">
                            <FullTypeName>System.String</FullTypeName>
                            <IsOut>false</IsOut>
                            <ArgValue>
                              <FormulaText>"Subject.Title='" &amp; (subject &amp; "'")</FormulaText>
                            </ArgValue>
                          </ExecuteMethodActionParamDef>
                        </ParameterValues>
                      </RuleElementDef>
                    </SubRules>
                    <HasContextVersionSettings>false</HasContextVersionSettings>
                  </RuleElement>
                  <HasContextVersionSettings>false</HasContextVersionSettings>
                </RuleElementDef>
              </Rules>
              <HasContextVersionSettings>false</HasContextVersionSettings>
            </RuleSetDefBase>
            <RuleSetDefBase
              xsi:type="RuleSetDef"
              Revision="1"
              PublicRevision="1"
              Guid="7b6f2681-bec6-4ef5-bb3f-0852eb88d7c7"
              Name="QueryCaseSubjects_WithCache">
              <Comments>This rule set provides an example of how to leverage the RuleHelper app domain level caching functionality.  A common use case for using appDomainCache would be looking up entities uses as reference data.  Subject on Case is an example, where you will need to look up an existing Subject to update it on a Case.</Comments>
              <FireMode>Explicit</FireMode>
              <RunMode>SequentialRunOnce</RunMode>
              <Rules>
                <RuleElementDef
                  xsi:type="LanguageRuleDef"
                  Revision="1"
                  PublicRevision="1"
                  Guid="4c0f85c7-de8b-423f-8ad5-aac476f28804"
                  Name="Call_QueryCollectionWithCache">
                  <Comments>This rule provides an example of how to leverage the RuleHelper app domain caching functionality.  A common use case for using appDomainCache would be with static reference data that will remain the same across rule execution transactions.  Please note, the App Domain Cache timeout must be set in the InRule for Dynamics 365 app configuration in order to take effect.</Comments>
                  <Attributes>
                    <anyType
                      xsi:type="CollectionItem">
                      <Key>
                        <Name>ReservedAttributeTokenKey</Name>
                        <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                      </Key>
                      <Collection>
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryCollectionWithCache(&lt;Arg Name=&quot;CollectionName&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.0"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryCollectionWithCache(&lt;Arg Name=&quot;CollectionName&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.1"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryCollection(&lt;Arg Name=&quot;CollectionName&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.2"
                          Value="StringDesigner" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.3"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryContact(&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;OrderBy&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.4"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryContact(&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;OrderBy&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.5"
                          Value="StringDesigner" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="0.6"
                          Value="DynamicsRules.UdfLibrary.RuleHelper.Udf.QueryContact(&lt;Arg Name=&quot;Filter&quot; Type=&quot;System.String&quot; /&gt;,&lt;Arg Name=&quot;OrderBy&quot; Type=&quot;System.String&quot; /&gt;).StaticAction" />
                      </Collection>
                    </anyType>
                  </Attributes>
                  <RuleElement
                    xsi:type="ExecuteMethodActionDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="ca931957-cead-4090-85c9-eade6ec72bc3"
                    Name="Call_QueryCollectionWithCache">
                    <AliasName>RuleHelper</AliasName>
                    <MethodName>QueryCollectionWithCache</MethodName>
                    <MethodReturnAssignTo />
                    <ParameterValues>
                      <ExecuteMethodActionParamDef
                        Name="CollectionName">
                        <FullTypeName>System.String</FullTypeName>
                        <IsOut>false</IsOut>
                        <ArgValue>
                          <FormulaText>"QueriedSubjects"</FormulaText>
                        </ArgValue>
                      </ExecuteMethodActionParamDef>
                      <ExecuteMethodActionParamDef
                        Name="Filter">
                        <FullTypeName>System.String</FullTypeName>
                        <IsOut>false</IsOut>
                        <ArgValue>
                          <FormulaText>""</FormulaText>
                        </ArgValue>
                      </ExecuteMethodActionParamDef>
                    </ParameterValues>
                  </RuleElement>
                  <HasContextVersionSettings>false</HasContextVersionSettings>
                </RuleElementDef>
              </Rules>
              <HasContextVersionSettings>false</HasContextVersionSettings>
            </RuleSetDefBase>
          </RuleSets>
        </RuleElementDef>
      </RuleElements>
      <Fields>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="37c9d081-8158-424c-834f-064c1518e417"
          Name="AccountName"
          DataType="String"
          DisplayName="Account Name">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="name" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="String" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="d773b1ee-2859-4c6e-86b8-f4efdd14d5f2"
          Name="AccountNumber"
          DataType="String"
          DisplayName="Account Number">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="accountnumber" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="String" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="1a90314f-6c87-457f-bbef-0d06534f9de9"
          Name="Description"
          DataType="String">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="description" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="Memo" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="67a4bdf7-2ed0-43fb-a2a1-6b604f51c926"
          Name="Contacts"
          DataType="Entity"
          IsCollection="true"
          DataTypeEntityName="Contact">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMRelationshipName"
                  Value="contact_customer_accounts" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMRelationshipLookupFieldName"
                  Value="parentcustomerid" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAutoLoadRelationship"
                  Value="True" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAutoSaveRelationship"
                  Value="True" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMExcludeInactiveRecords"
                  Value="False" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="35dab9bc-77cc-4ecc-b517-226e2303de5a"
          Name="QueriedContact"
          DataType="Entity"
          DataTypeEntityName="Contact"
          DisplayName="Queried Contact" />
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="ba266014-931f-4289-95bd-49cdfe680770"
          Name="QueriedContacts"
          DataType="Entity"
          IsCollection="true"
          DataTypeEntityName="Contact"
          DisplayName="Queried Contacts" />
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="49dfe5ac-c3c2-42bb-8d04-88920435b9e1"
          Name="Cases"
          DataType="Entity"
          IsCollection="true"
          DataTypeEntityName="Case">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMRelationshipName"
                  Value="incident_customer_accounts" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMRelationshipLookupFieldName"
                  Value="customerid" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAutoLoadRelationship"
                  Value="True" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAutoSaveRelationship"
                  Value="True" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMExcludeInactiveRecords"
                  Value="False" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="050f0468-8929-4370-b945-449d1836689c"
          Name="QueriedCases"
          DataType="Entity"
          IsCollection="true"
          DataTypeEntityName="Case"
          DisplayName="Queried Cases" />
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="21d96814-cc0b-44a2-ba4f-541c9fe77e19"
          Name="QueriedSubjects"
          DataType="Entity"
          IsCollection="true"
          DataTypeEntityName="Subject"
          DisplayName="Queried Subjects" />
      </Fields>
      <HasContextVersionSettings>false</HasContextVersionSettings>
    </EntityDef>
    <EntityDef
      Revision="1"
      PublicRevision="1"
      Guid="9cfc430b-de63-4364-b23c-2d590afa91f1"
      Name="Contact">
      <Attributes>
        <anyType
          xsi:type="CollectionItem">
          <Key>
            <Name>InRule® for Microsoft Dynamics® CRM</Name>
            <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
          </Key>
          <Collection>
            <anyType
              xsi:type="XmlSerializableStringDictionaryItem"
              Key="CRMEntity"
              Value="contact" />
          </Collection>
        </anyType>
      </Attributes>
      <RuleElements>
        <RuleElementDef
          xsi:type="RuleSetDef"
          Revision="2"
          PublicRevision="2"
          Guid="b370a76f-6a27-420d-91e3-16b18c2bc1c7"
          Name="ContactDefaultRules">
          <Comments>Rule set to execute against Contacts; this rule set provides an example of Decision Tables and using Fire Notification to display in Dyanmics. This rule set can be called directly for a given Contact or executed from the Account across all Contacts. </Comments>
          <FireMode>Explicit</FireMode>
          <RunMode>SequentialRunOnce</RunMode>
          <Rules>
            <RuleElementDef
              xsi:type="DecisionTableDef"
              Revision="1"
              PublicRevision="1"
              Guid="9d6458d7-dd6c-4687-a80c-644d6753d082"
              Name="AnnualIncomeTable">
              <Comments>This Rule is a decision table that checks the AnnualIncome of the contact against which the rule is executed and displays a notification based on what range the contact's income falls in.</Comments>
              <Attributes>
                <anyType
                  xsi:type="CollectionItem">
                  <Key>
                    <Name>ColumnWidths</Name>
                    <Guid>30321bef-a782-4c36-975e-25f034c9bf0d</Guid>
                  </Key>
                  <Collection>
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="Widths"
                      Value="AnnualIncome=120|Process Income=120" />
                  </Collection>
                </anyType>
              </Attributes>
              <Conditions>
                <ConditionDimensionDef>
                  <DimensionID>27d1a701-d7d8-47f4-b79b-2d53a008d26d</DimensionID>
                  <Name>AnnualIncome</Name>
                  <TargetExpression>AnnualIncome</TargetExpression>
                  <TargetDataType>String</TargetDataType>
                  <ConditionValues>
                    <ConditionValueDef>
                      <ValueID>2a9301ec-1646-4fe7-8c3a-9ad536f13072</ValueID>
                      <Tokens>
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="Value"
                          Value="0" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="DisplayValue"
                          Value="0" />
                      </Tokens>
                      <ConditionType>EqualTo</ConditionType>
                    </ConditionValueDef>
                    <ConditionValueDef>
                      <ValueID>4a4ca9dc-961f-49b0-bfe1-02806d0e0a28</ValueID>
                      <Tokens>
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="Value"
                          Value="20000" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="DisplayValue"
                          Value="&lt; $20,000" />
                      </Tokens>
                      <ConditionType>LessThan</ConditionType>
                    </ConditionValueDef>
                    <ConditionValueDef>
                      <ValueID>2abcbb2d-9a70-4a77-8ba3-74b606b4dfdc</ValueID>
                      <Tokens>
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="Value"
                          Value="" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="DisplayValue"
                          Value="$20,001 to $50,000" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="Value1"
                          Value="20001" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="Value2"
                          Value="50000" />
                      </Tokens>
                      <ConditionType>Between</ConditionType>
                    </ConditionValueDef>
                    <ConditionValueDef>
                      <ValueID>5a9bce93-731f-41a1-a34f-7d077209dce7</ValueID>
                      <Tokens>
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="Value"
                          Value="" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="DisplayValue"
                          Value="$50,001 to $100,000" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="Value1"
                          Value="50001" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="Value2"
                          Value="100000" />
                      </Tokens>
                      <ConditionType>Between</ConditionType>
                    </ConditionValueDef>
                    <ConditionValueDef>
                      <ValueID>59c551b4-942c-40d7-9718-c5542c3dc18a</ValueID>
                      <Tokens>
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="Value"
                          Value="100000" />
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="DisplayValue"
                          Value="&gt; $100,000" />
                      </Tokens>
                      <ConditionType>GreaterThan</ConditionType>
                    </ConditionValueDef>
                  </ConditionValues>
                  <UseFieldsValueList>false</UseFieldsValueList>
                </ConditionDimensionDef>
              </Conditions>
              <Actions>
                <ActionDimensionDef>
                  <DisplayName>Process Income</DisplayName>
                  <DimensionID>2e77cc72-ba7d-4a2b-b6e6-b5ad519ed4dd</DimensionID>
                  <FieldName>ProcessIncome</FieldName>
                  <ActionValues>
                    <ActionValueDef>
                      <ValueID>d1087058-2cee-4821-9ee2-bb9d1a2a42d3</ValueID>
                      <Tokens>
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="DisplayValue"
                          Value="No Income" />
                      </Tokens>
                      <IsFromMasterList>true</IsFromMasterList>
                      <RuleElement
                        xsi:type="FireNotificationActionDef"
                        Revision="1"
                        PublicRevision="1"
                        Guid="43d95afd-0a0d-48ef-b9f0-93c0285f3c92">
                        <Attributes>
                          <anyType
                            xsi:type="CollectionItem">
                            <Key>
                              <Name>ReservedAttributeTokenKey</Name>
                              <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                            </Key>
                            <Collection>
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0"
                                Value="FireNotificationWithSettingsTemplateDefault" />
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0.0"
                                Value="FireNotificationWithSettingsTemplateDefault" />
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0.1"
                                Value="ampStringTemplateString" />
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0.1.0"
                                Value="DynamicsRules.Contact.FullName.Implicit" />
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0.1.1"
                                Value="ampStringTemplateString" />
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0.1.2"
                                Value="StringDesigner" />
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0.2"
                                Value="FireNotificationWithSettingsTemplateDefault" />
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0.3.0"
                                Value="NotificationTypeTemplateNotificationType" />
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0.3.0.0"
                                Value="NotificationTypeTemplateNotificationType" />
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0.3.0.1"
                                Value="WarningNotificationTypeTemplate" />
                            </Collection>
                          </anyType>
                        </Attributes>
                        <NotificationType>Warning</NotificationType>
                        <NotificationMessage>
                          <FormulaParseFormat>Token</FormulaParseFormat>
                          <FormulaText>&lt;%FullName &amp; " does not have any income."%&gt;</FormulaText>
                        </NotificationMessage>
                      </RuleElement>
                    </ActionValueDef>
                    <ActionValueDef>
                      <ValueID>c5872d72-cac2-4936-9403-bce05af880db</ValueID>
                      <Tokens>
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="DisplayValue"
                          Value="Low Income" />
                      </Tokens>
                      <IsFromMasterList>true</IsFromMasterList>
                      <RuleElement
                        xsi:type="FireNotificationActionDef"
                        Revision="1"
                        PublicRevision="1"
                        Guid="8b068b04-ee76-45c3-bff2-f4eb1abfeaa8">
                        <Attributes>
                          <anyType
                            xsi:type="CollectionItem">
                            <Key>
                              <Name>ReservedAttributeTokenKey</Name>
                              <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                            </Key>
                            <Collection>
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0"
                                Value="FireNotificationTemplateDefault" />
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0.0"
                                Value="FireNotificationWithSettingsTemplateDefault" />
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0.1"
                                Value="StringDesigner" />
                            </Collection>
                          </anyType>
                        </Attributes>
                        <NotificationType>Informational</NotificationType>
                        <NotificationMessage>
                          <FormulaParseFormat>Literal</FormulaParseFormat>
                          <FormulaText>AnnualIncomeTable - Process Rules for Low income.</FormulaText>
                        </NotificationMessage>
                      </RuleElement>
                    </ActionValueDef>
                    <ActionValueDef>
                      <ValueID>e6e97cb2-844e-47b8-b9e8-53f7a94fe4d5</ValueID>
                      <Tokens>
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="DisplayValue"
                          Value="Middle Income" />
                      </Tokens>
                      <IsFromMasterList>true</IsFromMasterList>
                      <RuleElement
                        xsi:type="FireNotificationActionDef"
                        Revision="1"
                        PublicRevision="1"
                        Guid="719e0794-21aa-4fe6-bc2a-9fcf0b57e1ad">
                        <Attributes>
                          <anyType
                            xsi:type="CollectionItem">
                            <Key>
                              <Name>ReservedAttributeTokenKey</Name>
                              <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                            </Key>
                            <Collection>
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0"
                                Value="FireNotificationTemplateDefault" />
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0.0"
                                Value="FireNotificationWithSettingsTemplateDefault" />
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0.1"
                                Value="StringDesigner" />
                            </Collection>
                          </anyType>
                        </Attributes>
                        <NotificationType>Informational</NotificationType>
                        <NotificationMessage>
                          <FormulaParseFormat>Literal</FormulaParseFormat>
                          <FormulaText>AnnualIncomeTable - Process Rules for Middle income.</FormulaText>
                        </NotificationMessage>
                      </RuleElement>
                    </ActionValueDef>
                    <ActionValueDef>
                      <ValueID>6b747233-1e36-4fab-9c68-8bc3c4f2432b</ValueID>
                      <Tokens>
                        <anyType
                          xsi:type="XmlSerializableStringDictionaryItem"
                          Key="DisplayValue"
                          Value="High Income" />
                      </Tokens>
                      <IsFromMasterList>true</IsFromMasterList>
                      <RuleElement
                        xsi:type="FireNotificationActionDef"
                        Revision="1"
                        PublicRevision="1"
                        Guid="1d56e15c-b81b-440f-a064-f81e0f253a2a">
                        <Attributes>
                          <anyType
                            xsi:type="CollectionItem">
                            <Key>
                              <Name>ReservedAttributeTokenKey</Name>
                              <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                            </Key>
                            <Collection>
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0"
                                Value="FireNotificationTemplateDefault" />
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0.0"
                                Value="FireNotificationWithSettingsTemplateDefault" />
                              <anyType
                                xsi:type="XmlSerializableStringDictionaryItem"
                                Key="0.1"
                                Value="StringDesigner" />
                            </Collection>
                          </anyType>
                        </Attributes>
                        <NotificationType>Informational</NotificationType>
                        <NotificationMessage>
                          <FormulaParseFormat>Literal</FormulaParseFormat>
                          <FormulaText>AnnualIncomeTable - Process Rules for High income.</FormulaText>
                        </NotificationMessage>
                      </RuleElement>
                    </ActionValueDef>
                  </ActionValues>
                  <UseLanguageRules>true</UseLanguageRules>
                  <UseFieldsValueList>false</UseFieldsValueList>
                </ActionDimensionDef>
              </Actions>
              <Decisions>
                <DecisionDef>
                  <DecisionID>bab2ab95-fca9-46d2-b6a7-c355845e0552</DecisionID>
                  <ConditionNodes>
                    <ConditionNodeDef>
                      <SourceDimensionID>27d1a701-d7d8-47f4-b79b-2d53a008d26d</SourceDimensionID>
                      <SourceValueID>2a9301ec-1646-4fe7-8c3a-9ad536f13072</SourceValueID>
                    </ConditionNodeDef>
                  </ConditionNodes>
                  <ActionNodes>
                    <ActionNodeDef>
                      <SourceDimensionID>2e77cc72-ba7d-4a2b-b6e6-b5ad519ed4dd</SourceDimensionID>
                      <SourceValueID>d1087058-2cee-4821-9ee2-bb9d1a2a42d3</SourceValueID>
                    </ActionNodeDef>
                  </ActionNodes>
                </DecisionDef>
                <DecisionDef>
                  <DecisionID>9d0474d8-16c3-4a15-868b-d35544ef5a40</DecisionID>
                  <ConditionNodes>
                    <ConditionNodeDef>
                      <SourceDimensionID>27d1a701-d7d8-47f4-b79b-2d53a008d26d</SourceDimensionID>
                      <SourceValueID>4a4ca9dc-961f-49b0-bfe1-02806d0e0a28</SourceValueID>
                    </ConditionNodeDef>
                  </ConditionNodes>
                  <ActionNodes>
                    <ActionNodeDef>
                      <SourceDimensionID>2e77cc72-ba7d-4a2b-b6e6-b5ad519ed4dd</SourceDimensionID>
                      <SourceValueID>c5872d72-cac2-4936-9403-bce05af880db</SourceValueID>
                    </ActionNodeDef>
                  </ActionNodes>
                </DecisionDef>
                <DecisionDef>
                  <DecisionID>f8313f28-52f1-40d6-b73f-c71e63e74bdb</DecisionID>
                  <ConditionNodes>
                    <ConditionNodeDef>
                      <SourceDimensionID>27d1a701-d7d8-47f4-b79b-2d53a008d26d</SourceDimensionID>
                      <SourceValueID>2abcbb2d-9a70-4a77-8ba3-74b606b4dfdc</SourceValueID>
                    </ConditionNodeDef>
                  </ConditionNodes>
                  <ActionNodes>
                    <ActionNodeDef>
                      <SourceDimensionID>2e77cc72-ba7d-4a2b-b6e6-b5ad519ed4dd</SourceDimensionID>
                      <SourceValueID>e6e97cb2-844e-47b8-b9e8-53f7a94fe4d5</SourceValueID>
                    </ActionNodeDef>
                  </ActionNodes>
                </DecisionDef>
                <DecisionDef>
                  <DecisionID>589f8746-22af-487f-810f-9569157e6409</DecisionID>
                  <ConditionNodes>
                    <ConditionNodeDef>
                      <SourceDimensionID>27d1a701-d7d8-47f4-b79b-2d53a008d26d</SourceDimensionID>
                      <SourceValueID>5a9bce93-731f-41a1-a34f-7d077209dce7</SourceValueID>
                    </ConditionNodeDef>
                  </ConditionNodes>
                  <ActionNodes>
                    <ActionNodeDef>
                      <SourceDimensionID>2e77cc72-ba7d-4a2b-b6e6-b5ad519ed4dd</SourceDimensionID>
                      <SourceValueID>e6e97cb2-844e-47b8-b9e8-53f7a94fe4d5</SourceValueID>
                    </ActionNodeDef>
                  </ActionNodes>
                </DecisionDef>
                <DecisionDef>
                  <DecisionID>78ef8f8e-0c5c-45d2-9bcc-1f397397cb88</DecisionID>
                  <ConditionNodes>
                    <ConditionNodeDef>
                      <SourceDimensionID>27d1a701-d7d8-47f4-b79b-2d53a008d26d</SourceDimensionID>
                      <SourceValueID>59c551b4-942c-40d7-9718-c5542c3dc18a</SourceValueID>
                    </ConditionNodeDef>
                  </ConditionNodes>
                  <ActionNodes>
                    <ActionNodeDef>
                      <SourceDimensionID>2e77cc72-ba7d-4a2b-b6e6-b5ad519ed4dd</SourceDimensionID>
                      <SourceValueID>6b747233-1e36-4fab-9c68-8bc3c4f2432b</SourceValueID>
                    </ActionNodeDef>
                  </ActionNodes>
                </DecisionDef>
              </Decisions>
              <HasContextVersionSettings>false</HasContextVersionSettings>
              <UseCompatibilityMode>false</UseCompatibilityMode>
            </RuleElementDef>
          </Rules>
          <HasContextVersionSettings>false</HasContextVersionSettings>
        </RuleElementDef>
      </RuleElements>
      <Fields>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="d7a146a1-615d-4243-8e21-32cc0d6db988"
          Name="AnnualIncome"
          DataType="Number"
          DisplayName="Annual Income">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="annualincome" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="Money" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="4282d3be-4670-46c4-97df-b73f335ef1b2"
          Name="CompanyPhone"
          DataType="String"
          DisplayName="Company Phone">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="company" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="String" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="c1730bda-926d-4b6f-a67b-37fa84949019"
          Name="Email"
          DataType="String">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="emailaddress1" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="String" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="92315d2a-b4af-4ba1-8ee3-ebe6754be9fa"
          Name="FirstName"
          DataType="String"
          DisplayName="First Name">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="firstname" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="String" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="2f3714a7-5e3c-4102-9c9e-e9a7726be56e"
          Name="FullName"
          DataType="String"
          DisplayName="Full Name">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="fullname" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="String" />
              </Collection>
            </anyType>
          </Attributes>
          <ReadOnly>true</ReadOnly>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="83ae9345-13dd-4ae7-a33f-66b407bc2f5a"
          Name="LastName"
          DataType="String"
          DisplayName="Last Name">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="lastname" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="String" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="3f77b494-b593-40d0-a061-6fbe8d2acf03"
          Name="JobTitle"
          DataType="String"
          DisplayName="Job Title">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="jobtitle" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="String" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
      </Fields>
      <HasContextVersionSettings>false</HasContextVersionSettings>
    </EntityDef>
    <EntityDef
      Revision="1"
      PublicRevision="1"
      Guid="26fc3e30-ba79-4e47-97c9-325d8296ed5a"
      Name="Case">
      <Attributes>
        <anyType
          xsi:type="CollectionItem">
          <Key>
            <Name>InRule® for Microsoft Dynamics® CRM</Name>
            <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
          </Key>
          <Collection>
            <anyType
              xsi:type="XmlSerializableStringDictionaryItem"
              Key="CRMEntity"
              Value="incident" />
          </Collection>
        </anyType>
      </Attributes>
      <RuleElements>
        <RuleElementDef
          xsi:type="RuleSetDef"
          Revision="1"
          PublicRevision="1"
          Guid="7e4a3c5e-0d05-4969-b10f-51eff0df57ff"
          Name="CaseEscalationRules">
          <Comments>Rule set to execute against Case; business logic to see if the Case should be escalated. This rule set can be called directly for a given Case or executed from the Account across all Cases. </Comments>
          <FireMode>Explicit</FireMode>
          <RunMode>SequentialRunOnce</RunMode>
          <Rules>
            <RuleElementDef
              xsi:type="LanguageRuleDef"
              Revision="1"
              PublicRevision="1"
              Guid="fcf1c3e8-04cf-4c6a-91f8-4c82b120e46e"
              Name="EscalationRule">
              <Attributes>
                <anyType
                  xsi:type="CollectionItem">
                  <Key>
                    <Name>ReservedAttributeTokenKey</Name>
                    <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                  </Key>
                  <Collection>
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0"
                      Value="IfThenDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.0"
                      Value="IfThenDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1"
                      Value="ConditionGroupTemplateSingleCondition" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0"
                      Value="AllAreTrueDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.0"
                      Value="AllAreTrueDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.0"
                      Value="DynamicsRules.Case.Status_ValueListIs" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.0.0"
                      Value="DynamicsRules.Case.Status.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.0.1"
                      Value="DynamicsRules.Case.CaseType_ValueListIs" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.0.2.0"
                      Value="DynamicsRules.Case.Status.ValueListValue" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.1"
                      Value="IsFalseBooleanDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.1.0"
                      Value="DynamicsRules.Case.IsEscalated.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.1.1"
                      Value="IsFalseBooleanDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.2"
                      Value="DynamicsRules.Case.CaseType_ValueListIs" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.2.0"
                      Value="DynamicsRules.Case.CaseType.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.2.1"
                      Value="DynamicsRules.Case.CaseType_ValueListIs" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.2.2.0"
                      Value="DynamicsRules.Case.CaseType.ValueListValue" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.3"
                      Value="IsFalseBooleanDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.3.0"
                      Value="DynamicsRules.Case.FirstResponseSent.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.3.1"
                      Value="IsFalseBooleanDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.4"
                      Value="CompareDateTime2" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.4.0"
                      Value="DynamicsRules.Case.FollowUpBy.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.4.1"
                      Value="Comparison_beforeDate" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1.4.2"
                      Value="Today" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.2"
                      Value="IfThenDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.0"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.0.0"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.0.1"
                      Value="DynamicsRules.Case.IsEscalated.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.0.2"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.0.3"
                      Value="TrueLiteral" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.1"
                      Value="SetValueDateTimeAssignableDateTime" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.1.0"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.1.1"
                      Value="DynamicsRules.Case.FollowUpBy.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.1.2"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.1.3"
                      Value="plusdaysTemplateDateTime" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.1.3.0"
                      Value="Today" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.1.3.1"
                      Value="plusyearsTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.1.3.2"
                      Value="NumberOfdaysTemplate" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.1.3.2.0"
                      Value="IntegerDesigner" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.1.3.2.1"
                      Value="NumberOfdaysTemplate" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2"
                      Value="FireNotificationTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.0"
                      Value="FireNotificationWithSettingsTemplateDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.0"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.0.0"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.0.0.0"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.0.0.0.0"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.0.0.0.0.0"
                      Value="StringDesigner" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.0.0.0.0.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.0.0.0.0.2"
                      Value="DynamicsRules.Case.CaseNumber.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.0.0.0.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.0.0.0.2"
                      Value="StringDesigner" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.0.0.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.0.0.2"
                      Value="DynamicsRules.Case.CaseTitle.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.0.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.0.2"
                      Value="StringDesigner" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.1"
                      Value="ampStringTemplateString" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.2"
                      Value="FormatDateUserFormat" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.2.0"
                      Value="FormatDateSystemFormats" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.2.1"
                      Value="DynamicsRules.Case.FollowUpBy.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.2.2"
                      Value="FormatDateSystemFormats" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.3.2.1.2.3"
                      Value="StringDesigner" />
                  </Collection>
                </anyType>
              </Attributes>
              <RuleElement
                xsi:type="SimpleRuleDef"
                Revision="1"
                PublicRevision="1"
                Guid="b9e1f27d-1cee-445f-9ea6-1645dd995e83"
                Name="EscalationRule">
                <Condition>
                  <ReturnType>Boolean</ReturnType>
                  <FormulaText>AllAreTrue(IsInValueList(ToValueList("0"), Status), IsEscalated = false, IsInValueList(ToValueList("2"), CaseType), FirstResponseSent = false, FollowUpBy &lt; Today())</FormulaText>
                </Condition>
                <SubRules>
                  <RuleElementDef
                    xsi:type="SetValueActionDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="e66c2ca0-8254-4c13-a3d9-14d2d311b4d3"
                    Name="SetValue1">
                    <Element>
                      <FormulaText>IsEscalated</FormulaText>
                    </Element>
                    <Value>
                      <FormulaText>true</FormulaText>
                    </Value>
                  </RuleElementDef>
                  <RuleElementDef
                    xsi:type="SetValueActionDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="2e7ef778-2788-4477-b289-69b5c1e32385"
                    Name="SetValue2">
                    <Element>
                      <FormulaText>FollowUpBy</FormulaText>
                    </Element>
                    <Value>
                      <FormulaText>Adddays(Today(), 2)</FormulaText>
                    </Value>
                  </RuleElementDef>
                  <RuleElementDef
                    xsi:type="FireNotificationActionDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="d2a14419-b52a-4d79-b035-4f0084c13694"
                    Name="FireNotification1">
                    <NotificationType>Informational</NotificationType>
                    <NotificationMessage>
                      <FormulaParseFormat>Token</FormulaParseFormat>
                      <FormulaText>&lt;%"Case " &amp; CaseNumber &amp; " " &amp; CaseTitle &amp; " has been escalated - follow up by " &amp; Format(FollowUpBy, "d")%&gt;</FormulaText>
                    </NotificationMessage>
                  </RuleElementDef>
                </SubRules>
                <HasContextVersionSettings>false</HasContextVersionSettings>
              </RuleElement>
              <HasContextVersionSettings>false</HasContextVersionSettings>
            </RuleElementDef>
          </Rules>
          <HasContextVersionSettings>false</HasContextVersionSettings>
        </RuleElementDef>
        <RuleElementDef
          xsi:type="RuleSetDef"
          Revision="1"
          PublicRevision="1"
          Guid="011eaf1e-674f-45d4-bf9f-c8529f3fc580"
          Name="ClearEscalation">
          <Comments>Utility rule set to clear the escalation set from CaseEscalationRules</Comments>
          <FireMode>Explicit</FireMode>
          <RunMode>SequentialRunOnce</RunMode>
          <Rules>
            <RuleElementDef
              xsi:type="LanguageRuleDef"
              Revision="1"
              PublicRevision="1"
              Guid="64f43332-fbe0-4acf-a496-5b70c4ecaddd"
              Name="ClearEscalationRule">
              <Attributes>
                <anyType
                  xsi:type="CollectionItem">
                  <Key>
                    <Name>ReservedAttributeTokenKey</Name>
                    <Guid>60fae55a-9a45-41a5-828a-bc71a3b65013</Guid>
                  </Key>
                  <Collection>
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0"
                      Value="ActionSetDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.0"
                      Value="ActionSetDefault" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.0"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.1"
                      Value="DynamicsRulesWithDecisions.Case.IsEscalated.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.2"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.0.3"
                      Value="FalseLiteral" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.0"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.1"
                      Value="DynamicsRulesWithDecisions.Case.FirstResponseSent.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.2"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.1.3"
                      Value="FalseLiteral" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.2"
                      Value="SetValueDateTimeAssignableDateTime" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.2.0"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.2.1"
                      Value="DynamicsRulesWithDecisions.Case.FollowUpBy.Implicit" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.2.2"
                      Value="SetValueBooleanAssignableBoolean" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.2.3"
                      Value="ExpressionDesignerDateTime" />
                    <anyType
                      xsi:type="XmlSerializableStringDictionaryItem"
                      Key="0.1.2.3.0"
                      Value="ExpressionValue" />
                  </Collection>
                </anyType>
              </Attributes>
              <RuleElement
                xsi:type="SimpleRuleDef"
                Revision="1"
                PublicRevision="1"
                Guid="9e21053e-85e6-4fbb-996a-6301dd498c27"
                Name="ClearEscalationRule">
                <Condition>
                  <ReturnType>Boolean</ReturnType>
                  <FormulaText>true</FormulaText>
                </Condition>
                <SubRules>
                  <RuleElementDef
                    xsi:type="SetValueActionDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="35441246-ec72-498d-98c7-d7bc562e5fdb"
                    Name="SetValue1">
                    <Element>
                      <FormulaText>IsEscalated</FormulaText>
                    </Element>
                    <Value>
                      <FormulaText>false</FormulaText>
                    </Value>
                  </RuleElementDef>
                  <RuleElementDef
                    xsi:type="SetValueActionDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="4a94f70e-01c2-42a8-a680-c8a76a471216"
                    Name="SetValue2">
                    <Element>
                      <FormulaText>FirstResponseSent</FormulaText>
                    </Element>
                    <Value>
                      <FormulaText>false</FormulaText>
                    </Value>
                  </RuleElementDef>
                  <RuleElementDef
                    xsi:type="SetValueActionDef"
                    Revision="1"
                    PublicRevision="1"
                    Guid="3420a0df-60dd-44be-9482-24cb2d5d6863"
                    Name="SetValue3">
                    <Element>
                      <FormulaText>FollowUpBy</FormulaText>
                    </Element>
                    <Value>
                      <FormulaText>_fx((null))</FormulaText>
                    </Value>
                  </RuleElementDef>
                </SubRules>
                <HasContextVersionSettings>false</HasContextVersionSettings>
              </RuleElement>
              <HasContextVersionSettings>false</HasContextVersionSettings>
            </RuleElementDef>
          </Rules>
          <HasContextVersionSettings>false</HasContextVersionSettings>
        </RuleElementDef>
      </RuleElements>
      <Fields>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="b6dc42d0-5a6b-46c0-804a-5efd341d66fb"
          Name="CaseNumber"
          DataType="String"
          DisplayName="Case Number">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="ticketnumber" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="String" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="ab062206-247d-4b90-89f2-cd21dbc4de6e"
          Name="CaseTitle"
          DataType="String"
          DisplayName="Case Title">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="title" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="String" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="46fb14d1-2c6b-4425-ad4a-0a12e7ba7ff2"
          Name="CaseType"
          DataType="Integer"
          DisplayName="Case Type">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="casetypecode" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="Picklist" />
              </Collection>
            </anyType>
          </Attributes>
          <ValueList
            Guid="d10bfdfc-02bd-43d1-8652-a02511f8b2d5">
            <Parameters />
            <SourceValueListName>Case_CaseType_ValueList</SourceValueListName>
          </ValueList>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="df5c12fb-080f-4334-9e35-386447a30541"
          Name="Description"
          DataType="String">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="description" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="Memo" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="a1b106dc-d956-4d11-b893-d658d687d203"
          Name="Product"
          DataType="Entity"
          DataTypeEntityName="Product">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="productid" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="Lookup" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMEntityType"
                  Value="product" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAutoLoadRelationship"
                  Value="True" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAutoSaveRelationship"
                  Value="True" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMExcludeInactiveRecords"
                  Value="False" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMRelationshipName"
                  Value="product_incidents" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMRelationshipLookupFieldName"
                  Value="productid" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="305cda9b-bb5d-4ff5-866d-853b937f4b03"
          Name="Subject"
          DataType="Entity"
          DataTypeEntityName="Subject">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="subjectid" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="Lookup" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMEntityType"
                  Value="subject" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAutoLoadRelationship"
                  Value="True" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAutoSaveRelationship"
                  Value="True" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMExcludeInactiveRecords"
                  Value="False" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMRelationshipName"
                  Value="subject_incidents" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMRelationshipLookupFieldName"
                  Value="subjectid" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="7990f303-95ba-43fa-954f-d2aed965807f"
          Name="Customer"
          DataType="Entity"
          DataTypeEntityName="CustomerLookup">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="customerid" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="Customer" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMEntityType"
                  Value="CustomerLookup" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAutoLoadRelationship"
                  Value="True" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAutoSaveRelationship"
                  Value="True" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMExcludeInactiveRecords"
                  Value="False" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="5b4d7a2b-8ff9-4dd9-a6e8-5052455259bf"
          Name="FollowUpBy"
          DataType="DateTime"
          DisplayName="Follow Up By">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="followupby" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="DateTime" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="8c9870ba-cb3f-41da-8673-531c3712f899"
          Name="Priority"
          DataType="Integer">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="prioritycode" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="Picklist" />
              </Collection>
            </anyType>
          </Attributes>
          <ValueList
            Guid="0217d06b-b4fb-4b03-be8a-21ae8d2b438e">
            <Parameters />
            <SourceValueListName>Case_Priority_ValueList</SourceValueListName>
          </ValueList>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="1a189d49-ce37-4449-92fe-dbb2626b3840"
          Name="Status"
          DataType="Integer">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="statecode" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="State" />
              </Collection>
            </anyType>
          </Attributes>
          <ValueList
            Guid="5dd1745b-d9d6-415e-8296-3c1125f2a601">
            <Parameters />
            <SourceValueListName>Case_Status_ValueList</SourceValueListName>
          </ValueList>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="026e885c-4ad6-4f43-acae-6fa3aaefb851"
          Name="IsEscalated"
          DataType="Boolean"
          DisplayName="Is Escalated">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="isescalated" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="Boolean" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="e97e57cd-39d3-40d1-814b-3d5a695a1515"
          Name="FirstResponseSent"
          DataType="Boolean"
          DisplayName="First Response Sent">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="firstresponsesent" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="Boolean" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
      </Fields>
      <HasContextVersionSettings>false</HasContextVersionSettings>
    </EntityDef>
    <EntityDef
      Revision="1"
      PublicRevision="1"
      Guid="9d441a0d-3df3-41e2-805e-f113e1e666f0"
      Name="Product">
      <Attributes>
        <anyType
          xsi:type="CollectionItem">
          <Key>
            <Name>InRule® for Microsoft Dynamics® CRM</Name>
            <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
          </Key>
          <Collection>
            <anyType
              xsi:type="XmlSerializableStringDictionaryItem"
              Key="CRMEntity"
              Value="product" />
          </Collection>
        </anyType>
      </Attributes>
      <Fields>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="d69dab7e-2687-4f20-8135-80e6cecf488f"
          Name="Name"
          DataType="String">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="name" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="String" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
      </Fields>
      <HasContextVersionSettings>false</HasContextVersionSettings>
    </EntityDef>
    <EntityDef
      Revision="1"
      PublicRevision="1"
      Guid="d9085b7e-2c81-4d4f-8b6f-07fe111fe1ed"
      Name="Subject">
      <Attributes>
        <anyType
          xsi:type="CollectionItem">
          <Key>
            <Name>InRule® for Microsoft Dynamics® CRM</Name>
            <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
          </Key>
          <Collection>
            <anyType
              xsi:type="XmlSerializableStringDictionaryItem"
              Key="CRMEntity"
              Value="subject" />
          </Collection>
        </anyType>
      </Attributes>
      <Fields>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="e7cbffcf-5bd6-4ac2-bf61-628b3e36bbb2"
          Name="Title"
          DataType="String">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="title" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="String" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="14a78aa1-c98c-43df-9f7d-fbef65cb892b"
          Name="Description"
          DataType="String">
          <Attributes>
            <anyType
              xsi:type="CollectionItem">
              <Key>
                <Name>InRule® for Microsoft Dynamics® CRM</Name>
                <Guid>cd693343-8844-4926-82f7-b957e1ad3523</Guid>
              </Key>
              <Collection>
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMAttribute"
                  Value="description" />
                <anyType
                  xsi:type="XmlSerializableStringDictionaryItem"
                  Key="CRMDataType"
                  Value="Memo" />
              </Collection>
            </anyType>
          </Attributes>
        </FieldDef>
      </Fields>
      <HasContextVersionSettings>false</HasContextVersionSettings>
    </EntityDef>
    <EntityDef
      Revision="1"
      PublicRevision="1"
      Guid="5d569eda-3572-465b-8911-62b288c2eefd"
      Name="CustomerLookup"
      DisplayName="Customer Lookup">
      <Fields>
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="d15143a7-8689-4ca6-8fd3-fd49f2502710"
          Name="Account"
          DataType="Entity"
          DataTypeEntityName="Account" />
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="3573aabc-0ec0-438d-abbb-41146b3acb11"
          Name="Contact"
          DataType="Entity"
          DataTypeEntityName="Contact" />
        <FieldDef
          Revision="1"
          PublicRevision="1"
          Guid="aa4c5070-4704-4f8c-b1aa-007727ec7329"
          Name="CustomerType"
          DataType="String"
          DisplayName="Customer Type">
          <ValueList
            Guid="0153d468-c229-4def-888e-7c3c11275f5f">
            <Parameters />
            <SourceValueListName>CustomerLookup_ValueList</SourceValueListName>
          </ValueList>
        </FieldDef>
      </Fields>
      <HasContextVersionSettings>false</HasContextVersionSettings>
    </EntityDef>
  </Entities>
  <DataElements xmlns="http://www.inrule.com/XmlSchema/Schema">
    <DataElementDef
      xsi:type="InlineValueListDef"
      Revision="1"
      PublicRevision="1"
      Guid="fb6672e3-9237-4373-a09a-f695e4b63ba4"
      Name="Case_CaseType_ValueList">
      <SortDirection>Ascending</SortDirection>
      <SortMode>None</SortMode>
      <Items>
        <ValueListItemDef
          Guid="562df9f4-958a-42f7-861a-ed060c62ed67">
          <Value>1</Value>
          <DisplayText>Question</DisplayText>
        </ValueListItemDef>
        <ValueListItemDef
          Guid="0fada6ec-648b-4bbe-a45f-1334fd221426">
          <Value>2</Value>
          <DisplayText>Problem</DisplayText>
        </ValueListItemDef>
        <ValueListItemDef
          Guid="5b435c0b-483e-495a-b063-bba29771d791">
          <Value>3</Value>
          <DisplayText>Request</DisplayText>
        </ValueListItemDef>
      </Items>
    </DataElementDef>
    <DataElementDef
      xsi:type="InlineValueListDef"
      Revision="1"
      PublicRevision="1"
      Guid="37901b26-2d0c-4461-a271-d8ee10603860"
      Name="CustomerLookup_ValueList">
      <SortDirection>Ascending</SortDirection>
      <SortMode>None</SortMode>
      <Items>
        <ValueListItemDef
          Guid="29633979-3c1a-4e2b-afa1-c46fa1cb4884">
          <Value>account</Value>
          <DisplayText>Account</DisplayText>
        </ValueListItemDef>
        <ValueListItemDef
          Guid="9d43055b-8577-4efa-9a31-0dcb953b8b38">
          <Value>contact</Value>
          <DisplayText>Contact</DisplayText>
        </ValueListItemDef>
      </Items>
    </DataElementDef>
    <DataElementDef
      xsi:type="InlineValueListDef"
      Revision="1"
      PublicRevision="1"
      Guid="3ee49021-7bf9-4b41-a47c-8cc138936c3d"
      Name="Case_Priority_ValueList">
      <SortDirection>Ascending</SortDirection>
      <SortMode>None</SortMode>
      <Items>
        <ValueListItemDef
          Guid="e11bd643-1fc4-4c24-85a4-65da38f09192">
          <Value>1</Value>
          <DisplayText>High</DisplayText>
        </ValueListItemDef>
        <ValueListItemDef
          Guid="9362bd85-9172-4d10-a727-f83957390d31">
          <Value>2</Value>
          <DisplayText>Normal</DisplayText>
        </ValueListItemDef>
        <ValueListItemDef
          Guid="9b914cb8-8c5d-4935-8ddd-14c69993c9b8">
          <Value>3</Value>
          <DisplayText>Low</DisplayText>
        </ValueListItemDef>
      </Items>
    </DataElementDef>
    <DataElementDef
      xsi:type="InlineValueListDef"
      Revision="1"
      PublicRevision="1"
      Guid="e88a6338-7db6-409c-8e12-20c307b93641"
      Name="Case_Status_ValueList">
      <SortDirection>Ascending</SortDirection>
      <SortMode>None</SortMode>
      <Items>
        <ValueListItemDef
          Guid="18b76832-f60a-4005-ae90-deb5e0a5aad2">
          <Value>0</Value>
          <DisplayText>Active</DisplayText>
        </ValueListItemDef>
        <ValueListItemDef
          Guid="94ca366f-4397-4e83-9242-bc8cb56562e0">
          <Value>1</Value>
          <DisplayText>Resolved</DisplayText>
        </ValueListItemDef>
        <ValueListItemDef
          Guid="48be697a-0a60-4640-a4c8-3fd06a69cdf7">
          <Value>2</Value>
          <DisplayText>Cancelled</DisplayText>
        </ValueListItemDef>
      </Items>
    </DataElementDef>
  </DataElements>
  <EndPoints xmlns="http://www.inrule.com/XmlSchema/Schema">
    <EndPointDef
      xsi:type="AssemblyDef"
      Revision="1"
      PublicRevision="1"
      Guid="2db4f88f-5f7f-4d46-809f-94a273f43f11"
      Name="CrmHelper">
      <DefaultImportDateTimeDataType>DateTime</DefaultImportDateTimeDataType>
      <ClassInfos>
        <ClassInfo>
          <Name>DynamicsDriver</Name>
          <AssemblyName>InRule.Crm.RuleHelper</AssemblyName>
          <FullName>InRule.Crm.RuleHelper.DynamicsDriver</FullName>
          <Methods>
            <ClassMethodInfo>
              <Name>GetUserLocalTimeFromUtc</Name>
              <TypeName>DateTime</TypeName>
              <FullTypeName>System.DateTime</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>userId</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>timeInUtc</Name>
                  <TypeName>DateTime</TypeName>
                  <FullTypeName>System.DateTime</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>connectionString</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>String userId, DateTime timeInUtc, String connectionString</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>LoadMappedChildCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>LoadMappedChildCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>connectionString</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, String connectionString</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>LoadMappedChildCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>loadChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>useCaching</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>overwriteIfLoaded</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, Boolean loadChildren, Boolean useCaching, Boolean overwriteIfLoaded</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>LoadMappedChildCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>connectionString</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>loadChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>useCaching</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>overwriteIfLoaded</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, String connectionString, Boolean loadChildren, Boolean useCaching, Boolean overwriteIfLoaded</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>LoadMappedChildEntity</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>fieldName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>crmRelationshipName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String fieldName, String crmRelationshipName</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>LoadMappedChildEntity</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>fieldName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>crmRelationshipName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>connectionString</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String fieldName, String crmRelationshipName, String connectionString</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>LoadMappedChildEntity</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>fieldName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>crmRelationshipName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>loadChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>useCaching</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>overwriteIfLoaded</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String fieldName, String crmRelationshipName, Boolean loadChildren, Boolean useCaching, Boolean overwriteIfLoaded</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>LoadMappedChildEntity</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>fieldName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>crmRelationshipName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>connectionString</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>loadChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>useCaching</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>overwriteIfLoaded</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String fieldName, String crmRelationshipName, String connectionString, Boolean loadChildren, Boolean useCaching, Boolean overwriteIfLoaded</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>LoadMappedNtoNCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>relationshipName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>loadChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>useCaching</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>overwriteIfLoaded</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, String relationshipName, Boolean loadChildren, Boolean useCaching, Boolean overwriteIfLoaded</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>LoadMappedNtoNCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>relationshipName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>connectionString</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>loadChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>useCaching</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>overwriteIfLoaded</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, String relationshipName, String connectionString, Boolean loadChildren, Boolean useCaching, Boolean overwriteIfLoaded</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>filterExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>orderByExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>loadChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>useCaching</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>overwriteIfLoaded</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>cacheInAppDomain</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>connectionString</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, String filterExpression, String orderByExpression, Boolean loadChildren, Boolean useCaching, Boolean overwriteIfLoaded, Boolean cacheInAppDomain, String connectionString</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>filterExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, String filterExpression</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>filterExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>orderByExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, String filterExpression, String orderByExpression</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>filterExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>orderByExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>connectionString</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, String filterExpression, String orderByExpression, String connectionString</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>filterExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>orderByExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>loadChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>useCaching</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>overwriteIfLoaded</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, String filterExpression, String orderByExpression, Boolean loadChildren, Boolean useCaching, Boolean overwriteIfLoaded</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryCollection</Name>
              <LanguageExpression>DynamicsDriver.QueryCollection(&lt;%context%&gt;, &lt;%root%&gt;, &lt;%collectionName%&gt;, &lt;%filterExpression%&gt;, &lt;%orderByExpression%&gt;, &lt;%loadChildren%&gt;, &lt;%useCaching%&gt;, &lt;%overwriteIfLoaded%&gt;, &lt;%cacheInAppDomain%&gt;)</LanguageExpression>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>filterExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>orderByExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>loadChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>useCaching</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>overwriteIfLoaded</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>cacheInAppDomain</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, String filterExpression, String orderByExpression, Boolean loadChildren, Boolean useCaching, Boolean overwriteIfLoaded, Boolean cacheInAppDomain</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>filterExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>orderByExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>loadChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>useCaching</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>overwriteIfLoaded</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>connectionString</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, String filterExpression, String orderByExpression, Boolean loadChildren, Boolean useCaching, Boolean overwriteIfLoaded, String connectionString</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryEntity</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Entity</TypeName>
              <FullTypeName>InRule.Runtime.Entity</FullTypeName>
              <AssemblyName>InRule.Runtime</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>entityName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>filterExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, String entityName, String filterExpression</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryEntity</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Entity</TypeName>
              <FullTypeName>InRule.Runtime.Entity</FullTypeName>
              <AssemblyName>InRule.Runtime</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>entityName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>filterExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>orderByExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, String entityName, String filterExpression, String orderByExpression</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryEntity</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Entity</TypeName>
              <FullTypeName>InRule.Runtime.Entity</FullTypeName>
              <AssemblyName>InRule.Runtime</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>entityName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>filterExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>orderByExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>connectionString</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, String entityName, String filterExpression, String orderByExpression, String connectionString</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryEntity</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Entity</TypeName>
              <FullTypeName>InRule.Runtime.Entity</FullTypeName>
              <AssemblyName>InRule.Runtime</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>entityName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>filterExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>orderByExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>loadChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>useCaching</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>overwriteIfLoaded</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, String entityName, String filterExpression, String orderByExpression, Boolean loadChildren, Boolean useCaching, Boolean overwriteIfLoaded</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryEntity</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Entity</TypeName>
              <FullTypeName>InRule.Runtime.Entity</FullTypeName>
              <AssemblyName>InRule.Runtime</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>entityName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>filterExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>orderByExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>loadChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>useCaching</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>overwriteIfLoaded</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>connectionString</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, String entityName, String filterExpression, String orderByExpression, Boolean loadChildren, Boolean useCaching, Boolean overwriteIfLoaded, String connectionString</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryField</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Object</TypeName>
              <FullTypeName>System.Object</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>entityName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>fieldName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>filterExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, String entityName, String fieldName, String filterExpression</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryField</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Object</TypeName>
              <FullTypeName>System.Object</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>entityName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>fieldName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>filterExpression</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>connectionString</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, String entityName, String fieldName, String filterExpression, String connectionString</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryNtoNCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>relationshipName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>parentIdCrmFieldName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>parentIdValue</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>childIdCrmFieldName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>loadChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>useCaching</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>overwriteIfLoaded</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, String relationshipName, String parentIdCrmFieldName, String parentIdValue, String childIdCrmFieldName, Boolean loadChildren, Boolean useCaching, Boolean overwriteIfLoaded</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>QueryNtoNCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>relationshipName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>parentIdCrmFieldName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>parentIdValue</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>childIdCrmFieldName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>connectionString</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>loadChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>useCaching</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>overwriteIfLoaded</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, String relationshipName, String parentIdCrmFieldName, String parentIdValue, String childIdCrmFieldName, String connectionString, Boolean loadChildren, Boolean useCaching, Boolean overwriteIfLoaded</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>SaveEntity</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>entityToSave</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity entityToSave</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>SaveEntity</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>entityToSave</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>includeChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity entityToSave, Boolean includeChildren</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>SaveEntity</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>entityToSave</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>includeChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>connectionString</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity entityToSave, Boolean includeChildren, String connectionString</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>SaveEntityCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>SaveEntityCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>includeChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, Boolean includeChildren</ParameterList>
            </ClassMethodInfo>
            <ClassMethodInfo>
              <Name>SaveEntityCollection</Name>
              <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
              <TypeName>Void</TypeName>
              <FullTypeName>System.Void</FullTypeName>
              <AssemblyName>mscorlib</AssemblyName>
              <IsStatic>true</IsStatic>
              <Parameters>
                <ClassParameterInfo>
                  <Name>context</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>IRuleExecutionContext</TypeName>
                  <FullTypeName>InRule.Runtime.IRuleExecutionContext</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>root</Name>
                  <TypeIsIntrinsicType>false</TypeIsIntrinsicType>
                  <TypeName>Entity</TypeName>
                  <FullTypeName>InRule.Runtime.Entity</FullTypeName>
                  <AssemblyName>InRule.Runtime</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>collectionName</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>includeChildren</Name>
                  <TypeName>Boolean</TypeName>
                  <FullTypeName>System.Boolean</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
                <ClassParameterInfo>
                  <Name>connectionString</Name>
                  <TypeName>String</TypeName>
                  <FullTypeName>System.String</FullTypeName>
                  <AssemblyName>mscorlib</AssemblyName>
                </ClassParameterInfo>
              </Parameters>
              <ParameterList>IRuleExecutionContext context, Entity root, String collectionName, Boolean includeChildren, String connectionString</ParameterList>
            </ClassMethodInfo>
          </Methods>
          <Properties />
          <Fields />
          <IsFunctionLibrary>true</IsFunctionLibrary>
          <IsEntity>false</IsEntity>
          <IncludeMethods>false</IncludeMethods>
        </ClassInfo>
      </ClassInfos>
      <AssemblyName>InRule.Crm.RuleHelper</AssemblyName>
      <LastImportInfo>
        <Namespaces />
        <EntityDefInfos />
        <LastImportHashCode>0</LastImportHashCode>
        <LastImportDateTime>2019-08-09T14:41:53.7904652Z</LastImportDateTime>
        <LastSyncDateTime>0001-01-01T05:00:00Z</LastSyncDateTime>
        <LastSyncImportDateTime>0001-01-01T05:00:00Z</LastSyncImportDateTime>
      </LastImportInfo>
      <LastImportedFileName>C:\Program Files (x86)\InRule August 19 DynamicsRules\irAuthor\EndPointAssemblies\InRule.Crm.RuleHelper.dll</LastImportedFileName>
    </EndPointDef>
  </EndPoints>
  <Vocabulary
    Revision="1"
    PublicRevision="1"
    Guid="b4966da4-7143-4438-9861-5810c740f75f"
    Name="VocabularyDef1" xmlns="http://www.inrule.com/XmlSchema/Schema">
    <Templates>
      <TemplateDef
        xsi:type="ExpressionTemplateDef"
        Revision="1"
        PublicRevision="1"
        Guid="3c6129f7-82b9-419d-a03a-5084f7af596b"
        Name="GetContactTemplate">
        <DisplayName>get contact</DisplayName>
        <MenuGroup>Actions</MenuGroup>
        <BusinessLanguagePrototype>contact with $filter$</BusinessLanguagePrototype>
        <Placeholders>
          <RuleRepositoryDefBase
            xsi:type="TemplatePlaceholderDef"
            Revision="1"
            PublicRevision="1"
            Guid="eba817b6-d61a-4b7b-b78d-2a7fa1ad0e74"
            Name="filter">
            <DisplayText>[filter]</DisplayText>
            <Accepts>
              <PlaceholderValueDef
                xsi:type="DataTypeValueDef"
                Revision="1"
                PublicRevision="1"
                Guid="795ff639-03a8-40fb-a251-804f5c927ad8"
                Name="DataTypeValueDef1">
                <DataType>String</DataType>
              </PlaceholderValueDef>
            </Accepts>
            <IsMultiSelect>false</IsMultiSelect>
          </RuleRepositoryDefBase>
        </Placeholders>
        <TemplateScope>Local</TemplateScope>
        <ExpressionPrototype>RuleHelper.QueryContact($filter$)</ExpressionPrototype>
        <FunctionName>GetContact</FunctionName>
        <SelectionMode>Template</SelectionMode>
        <Impersonates>
          <ImpersonationDef
            xsi:type="EntityImpersonationDef"
            Revision="1"
            PublicRevision="1"
            Guid="5b6f13b6-cf01-442a-87c1-e6953fed1ea2"
            Name="EntityImpersonationDef2">
            <EntityName>Contact</EntityName>
          </ImpersonationDef>
        </Impersonates>
      </TemplateDef>
    </Templates>
    <TemplateAvailabilitySettings />
  </Vocabulary>
  <UdfLibraries xmlns="http://www.inrule.com/XmlSchema/Schema">
    <UdfLibraryDef
      Revision="1"
      PublicRevision="1"
      Guid="8955ffe2-b77d-4f54-b21a-4317bb6a07ff"
      Name="RuleHelper">
      <UserDefinedFunctions>
        <UdfDef
          Revision="1"
          PublicRevision="1"
          Guid="ffb4aeea-3217-4c79-8d46-ea477a34cc14"
          Name="QueryContact">
          <ReturnTypeInfo
            Revision="1"
            PublicRevision="1"
            Guid="2ebb21f6-1161-4842-ae3f-c97fecb053f3"
            DataTypeEntityName="Contact">
            <DataType>Entity</DataType>
          </ReturnTypeInfo>
          <Arguments>
            <UdfArgumentDef
              Revision="1"
              PublicRevision="1"
              Guid="254842b9-37f5-4246-92fa-8ba30da4891a"
              Name="Filter">
              <IsOutOrRef>false</IsOutOrRef>
              <ArgumentTypeInfo
                Revision="1"
                PublicRevision="1"
                Guid="b92b212e-eb17-460c-901e-ba5143db0c46">
                <DataType>String</DataType>
              </ArgumentTypeInfo>
            </UdfArgumentDef>
          </Arguments>
          <FunctionBody>
            <ReturnType>Boolean</ReturnType>
            <FormulaText>//QueryEntity Parameter List - context, entityName, filter, orderBy
var entityResponse = Context.FunctionLibraries.DynamicsDriver.QueryEntity(Context, "Contact", Filter, "");
return entityResponse;
</FormulaText>
          </FunctionBody>
        </UdfDef>
        <UdfDef
          Revision="1"
          PublicRevision="1"
          Guid="c44b3e79-65f4-4349-a3c3-732f212c3113"
          Name="QueryCollection">
          <ReturnTypeInfo
            Revision="1"
            PublicRevision="1"
            Guid="51caf54f-7ff2-4563-94d2-dd0eef60ed67">
            <DataType>None</DataType>
          </ReturnTypeInfo>
          <Arguments>
            <UdfArgumentDef
              Revision="1"
              PublicRevision="1"
              Guid="7bdaec3e-04c5-41cb-9696-d0f2e1c21952"
              Name="CollectionName">
              <IsOutOrRef>false</IsOutOrRef>
              <ArgumentTypeInfo
                Revision="1"
                PublicRevision="1"
                Guid="4886de90-dbb0-4f2d-8d95-053c53a45b6d">
                <DataType>String</DataType>
              </ArgumentTypeInfo>
            </UdfArgumentDef>
            <UdfArgumentDef
              Revision="1"
              PublicRevision="1"
              Guid="91019192-d59b-44b5-ab71-3689789c717a"
              Name="Filter">
              <IsOutOrRef>false</IsOutOrRef>
              <ArgumentTypeInfo
                Revision="1"
                PublicRevision="1"
                Guid="323b7080-55f4-4913-8028-049986443648">
                <DataType>String</DataType>
              </ArgumentTypeInfo>
            </UdfArgumentDef>
          </Arguments>
          <FunctionBody>
            <ReturnType>Boolean</ReturnType>
            <FormulaText>//QueryCollection Parameter List - context, entity, collectionName, filter, orderBy, loadChildren, useCaching, overwriteIfLoaded
Context.FunctionLibraries.DynamicsDriver.QueryCollection(Context, Context.Entity, CollectionName, Filter, "", true, true, false);</FormulaText>
          </FunctionBody>
        </UdfDef>
        <UdfDef
          Revision="1"
          PublicRevision="1"
          Guid="750c2a67-5455-4849-9c04-7a1fadc961cd"
          Name="QuerySortedCollection">
          <ReturnTypeInfo
            Revision="1"
            PublicRevision="1"
            Guid="56415c04-62de-4a82-9550-3c437688b1a0">
            <DataType>None</DataType>
          </ReturnTypeInfo>
          <Arguments>
            <UdfArgumentDef
              Revision="1"
              PublicRevision="1"
              Guid="c56f714a-dab7-45c5-ae53-5176af46b143"
              Name="CollectionName">
              <IsOutOrRef>false</IsOutOrRef>
              <ArgumentTypeInfo
                Revision="1"
                PublicRevision="1"
                Guid="e48c34db-e620-4fac-ac22-e62cd8ee2405">
                <DataType>String</DataType>
              </ArgumentTypeInfo>
            </UdfArgumentDef>
            <UdfArgumentDef
              Revision="1"
              PublicRevision="1"
              Guid="2e9c8870-0495-47e2-8935-b598b3cbb381"
              Name="Filter">
              <IsOutOrRef>false</IsOutOrRef>
              <ArgumentTypeInfo
                Revision="1"
                PublicRevision="1"
                Guid="bc1aa8d6-bfb9-459e-a7ee-fcaf32b5761a">
                <DataType>String</DataType>
              </ArgumentTypeInfo>
            </UdfArgumentDef>
            <UdfArgumentDef
              Revision="1"
              PublicRevision="1"
              Guid="936e5cd8-5c49-4e35-b563-1bbd596abd3d"
              Name="OrderBy">
              <IsOutOrRef>false</IsOutOrRef>
              <ArgumentTypeInfo
                Revision="1"
                PublicRevision="1"
                Guid="55d69634-8fac-4ff8-8ff2-4238978e85ef">
                <DataType>String</DataType>
              </ArgumentTypeInfo>
            </UdfArgumentDef>
          </Arguments>
          <FunctionBody>
            <ReturnType>Boolean</ReturnType>
            <FormulaText>//QueryCollection Parameter List - context, entity, collectionName, filter, orderBy, loadChildren, useCaching, overwriteIfLoaded
Context.FunctionLibraries.DynamicsDriver.QueryCollection(Context, Context.Entity, CollectionName, Filter, OrderBy, true, true, false);</FormulaText>
          </FunctionBody>
        </UdfDef>
        <UdfDef
          Revision="1"
          PublicRevision="1"
          Guid="b0bf053e-a0d1-46b6-9e2f-a96f9242dcde"
          Name="QueryCollectionWithCache">
          <ReturnTypeInfo
            Revision="1"
            PublicRevision="1"
            Guid="a633b523-7dd8-4e21-b55e-0d8b8dfc38bb">
            <DataType>None</DataType>
          </ReturnTypeInfo>
          <Arguments>
            <UdfArgumentDef
              Revision="1"
              PublicRevision="1"
              Guid="00911729-9ef2-4115-ab15-f8e7d76b056c"
              Name="CollectionName">
              <IsOutOrRef>false</IsOutOrRef>
              <ArgumentTypeInfo
                Revision="1"
                PublicRevision="1"
                Guid="0728ed47-45da-4c8f-b264-dfb707daae82">
                <DataType>String</DataType>
              </ArgumentTypeInfo>
            </UdfArgumentDef>
            <UdfArgumentDef
              Revision="1"
              PublicRevision="1"
              Guid="bbb5c444-1c93-40cc-b588-71d30d6f6f81"
              Name="Filter">
              <IsOutOrRef>false</IsOutOrRef>
              <ArgumentTypeInfo
                Revision="1"
                PublicRevision="1"
                Guid="fb48dcf1-8ff3-4281-b1b2-04eac048b0a0">
                <DataType>String</DataType>
              </ArgumentTypeInfo>
            </UdfArgumentDef>
          </Arguments>
          <FunctionBody>
            <ReturnType>Boolean</ReturnType>
            <FormulaText>//QueryCollection Parameter List - context, root, collectionName, filterExpression, orderByExpression, loadChildren, useCaching, overwriteIfLoaded, cacheInAppDomain)
Context.FunctionLibraries.DynamicsDriver.QueryCollection(Context, Context.Entity, CollectionName, Filter, "", true, true, false, true);</FormulaText>
          </FunctionBody>
        </UdfDef>
        <UdfDef
          Revision="1"
          PublicRevision="1"
          Guid="5171d523-299f-408c-918a-9421f522ba2d"
          Name="LoadChildCollection">
          <ReturnTypeInfo
            Revision="1"
            PublicRevision="1"
            Guid="4fdbc2b5-5ad0-442e-9e46-53cbb318a2fd">
            <DataType>None</DataType>
          </ReturnTypeInfo>
          <Arguments>
            <UdfArgumentDef
              Revision="1"
              PublicRevision="1"
              Guid="4c6b484f-aa4e-4ab8-ae62-676c548f1584"
              Name="CollectionName">
              <IsOutOrRef>false</IsOutOrRef>
              <ArgumentTypeInfo
                Revision="1"
                PublicRevision="1"
                Guid="aadfb17e-965a-4a52-aa81-e67d5795c331">
                <DataType>String</DataType>
              </ArgumentTypeInfo>
            </UdfArgumentDef>
          </Arguments>
          <FunctionBody>
            <ReturnType>Boolean</ReturnType>
            <FormulaText>//LoadMappedChildCollection Parameter List - context, entity, collectionName)
Context.FunctionLibraries.DynamicsDriver.LoadMappedChildCollection(Context, Context.Entity, CollectionName);</FormulaText>
          </FunctionBody>
        </UdfDef>
      </UserDefinedFunctions>
    </UdfLibraryDef>
  </UdfLibraries>
</RuleApplicationDef>