7.2 Types Schema

This section contains the contents of the MS-OXWSRULES-types.xsd file and information about additional files that this schema file requires to operate correctly.

MS-OXWSRULES-types.xsd includes the files listed in the following table. For the schema file to operate correctly, these files have to be present in the folder that contains the WSDL, types schema, and messages schema files for this protocol.

File name

Defining specification

MS-OXWSCDATA-types.xsd

[MS-OXWSCDATA] section 7.2

MS-OXWSCORE-types.xsd

[MS-OXWSCORE] section 7.2

<?xml version="1.0" encoding="utf-8"?>

 <xs:schema xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:tns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://schemas.microsoft.com/exchange/services/2006/types" elementFormDefault="qualified" version="Exchange2016" id="types">
   <xs:import namespace="http://www.w3.org/XML/1998/namespace"/>
   <xs:include schemaLocation="MS-OXWSCDATA-types.xsd"/>
   <xs:include schemaLocation="MS-OXWSCORE-types.xsd"/>
  
   <xs:complexType name="ArrayOfRulesType">
     <xs:sequence>
       <xs:element name="Rule" type="t:RuleType" minOccurs="0" maxOccurs="unbounded"/>
     </xs:sequence>
   </xs:complexType>
  
   <xs:complexType name="RuleType">
     <xs:sequence>
       <xs:element name="RuleId" type="xs:string" minOccurs="0"/>
       <xs:element name="DisplayName" type="xs:string"/>
       <xs:element name="Priority" type="xs:int"/>
       <xs:element name="IsEnabled" type="xs:boolean"/>
       <xs:element name="IsNotSupported" type="xs:boolean" minOccurs="0"/>
       <xs:element name="IsInError" type="xs:boolean" minOccurs="0"/>
       <xs:element name="Conditions" type="t:RulePredicatesType" minOccurs="0"/>
       <xs:element name="Exceptions" type="t:RulePredicatesType" minOccurs="0"/>
       <xs:element name="Actions" type="t:RuleActionsType" minOccurs="0"/>
     </xs:sequence>
   </xs:complexType>
  
   <xs:complexType name="RulePredicatesType">
     <xs:sequence>
       <xs:element name="Categories" type="t:ArrayOfStringsType" minOccurs="0"/>
       <xs:element name="ContainsBodyStrings" type="t:ArrayOfStringsType" minOccurs="0"/>
       <xs:element name="ContainsHeaderStrings" type="t:ArrayOfStringsType" minOccurs="0"/>
       <xs:element name="ContainsRecipientStrings" type="t:ArrayOfStringsType" minOccurs="0"/>
       <xs:element name="ContainsSenderStrings" type="t:ArrayOfStringsType" minOccurs="0"/>
       <xs:element name="ContainsSubjectOrBodyStrings" type="t:ArrayOfStringsType" minOccurs="0"/>
       <xs:element name="ContainsSubjectStrings" type="t:ArrayOfStringsType" minOccurs="0"/>
       <xs:element name="FlaggedForAction" type="t:FlaggedForActionType" minOccurs="0"/>
       <xs:element name="FromAddresses" type="t:ArrayOfEmailAddressesType" minOccurs="0"/>
       <xs:element name="FromConnectedAccounts" type="t:ArrayOfStringsType" minOccurs="0"/>
       <xs:element name="HasAttachments" type="xs:boolean" minOccurs="0"/>
       <xs:element name="Importance" type="t:ImportanceChoicesType" minOccurs="0"/>
       <xs:element name="IsApprovalRequest" type="xs:boolean" minOccurs="0"/>
       <xs:element name="IsAutomaticForward" type="xs:boolean" minOccurs="0"/>
       <xs:element name="IsAutomaticReply" type="xs:boolean" minOccurs="0"/>
       <xs:element name="IsEncrypted" type="xs:boolean" minOccurs="0"/>
       <xs:element name="IsMeetingRequest" type="xs:boolean" minOccurs="0"/>
       <xs:element name="IsMeetingResponse" type="xs:boolean" minOccurs="0"/>
       <xs:element name="IsNDR" type="xs:boolean" minOccurs="0"/>
       <xs:element name="IsPermissionControlled" type="xs:boolean" minOccurs="0"/>
       <xs:element name="IsReadReceipt" type="xs:boolean" minOccurs="0"/>
       <xs:element name="IsSigned" type="xs:boolean" minOccurs="0"/>
       <xs:element name="IsVoicemail" type="xs:boolean" minOccurs="0"/>
       <xs:element name="ItemClasses" type="t:ArrayOfStringsType" minOccurs="0"/>
       <xs:element name="MessageClassifications" type="t:ArrayOfStringsType" minOccurs="0"/>
       <xs:element name="NotSentToMe" type="xs:boolean" minOccurs="0"/>
       <xs:element name="SentCcMe" type="xs:boolean" minOccurs="0"/>
       <xs:element name="SentOnlyToMe" type="xs:boolean" minOccurs="0"/>
       <xs:element name="SentToAddresses" type="t:ArrayOfEmailAddressesType" minOccurs="0"/>
       <xs:element name="SentToMe" type="xs:boolean" minOccurs="0"/>
       <xs:element name="SentToOrCcMe" type="xs:boolean" minOccurs="0"/>
       <xs:element name="Sensitivity" type="t:SensitivityChoicesType" minOccurs="0"/>
       <xs:element name="WithinDateRange" type="t:RulePredicateDateRangeType" minOccurs="0"/>
       <xs:element name="WithinSizeRange" type="t:RulePredicateSizeRangeType" minOccurs="0"/>
     </xs:sequence>
   </xs:complexType>
  
   <xs:complexType name="RuleActionsType">
     <xs:sequence>
       <xs:element name="AssignCategories" type="t:ArrayOfStringsType" minOccurs="0"/>
       <xs:element name="CopyToFolder" type="t:TargetFolderIdType" minOccurs="0"/>
       <xs:element name="Delete" type="xs:boolean" minOccurs="0"/>
       <xs:element name="ForwardAsAttachmentToRecipients" type="t:ArrayOfEmailAddressesType" minOccurs="0"/>
       <xs:element name="ForwardToRecipients" type="t:ArrayOfEmailAddressesType" minOccurs="0"/>
       <xs:element name="MarkImportance" type="t:ImportanceChoicesType" minOccurs="0"/>
       <xs:element name="MarkAsRead" type="xs:boolean" minOccurs="0"/>
       <xs:element name="MoveToFolder" type="t:TargetFolderIdType" minOccurs="0"/>
       <xs:element name="PermanentDelete" type="xs:boolean" minOccurs="0"/>
       <xs:element name="RedirectToRecipients" type="t:ArrayOfEmailAddressesType" minOccurs="0"/>
       <xs:element name="SendSMSAlertToRecipients" type="t:ArrayOfEmailAddressesType" minOccurs="0"/>
       <xs:element name="ServerReplyWithMessage" type="t:ItemIdType" minOccurs="0"/>
       <xs:element name="StopProcessingRules" type="xs:boolean" minOccurs="0"/>
     </xs:sequence>
   </xs:complexType>
  
  
   <xs:simpleType name="FlaggedForActionType">
     <xs:restriction base="xs:string">
       <xs:enumeration value="Any"/>
       <xs:enumeration value="Call"/>
       <xs:enumeration value="DoNotForward"/>
       <xs:enumeration value="FollowUp"/>
       <xs:enumeration value="FYI"/>
       <xs:enumeration value="Forward"/>
       <xs:enumeration value="NoResponseNecessary"/>
       <xs:enumeration value="Read"/>
       <xs:enumeration value="Reply"/>
       <xs:enumeration value="ReplyToAll"/>
       <xs:enumeration value="Review"/>
     </xs:restriction>
   </xs:simpleType>
  
   <xs:complexType name="RulePredicateDateRangeType">
     <xs:sequence>
       <xs:element name="StartDateTime" type="xs:dateTime" minOccurs="0"/>
       <xs:element name="EndDateTime" type="xs:dateTime" minOccurs="0"/>
     </xs:sequence>
   </xs:complexType>
  
   <xs:complexType name="RulePredicateSizeRangeType">
     <xs:sequence>
       <xs:element name="MinimumSize" type="xs:int" minOccurs="0"/>
       <xs:element name="MaximumSize" type="xs:int" minOccurs="0"/>
     </xs:sequence>
   </xs:complexType>
  
  
   <xs:complexType name="ArrayOfRuleOperationsType">
     <xs:choice maxOccurs="unbounded">
       <xs:element name="CreateRuleOperation" type="t:CreateRuleOperationType"/>
       <xs:element name="SetRuleOperation" type="t:SetRuleOperationType"/>
       <xs:element name="DeleteRuleOperation" type="t:DeleteRuleOperationType"/>
     </xs:choice>
   </xs:complexType>
  
   <xs:complexType name="CreateRuleOperationType">
     <xs:complexContent>
       <xs:extension base="t:RuleOperationType">
         <xs:sequence>
           <xs:element name="Rule" type="t:RuleType"/>
         </xs:sequence>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
  
   <xs:complexType name="RuleOperationType" abstract="true">
   </xs:complexType>
  
   <xs:complexType name="SetRuleOperationType">
     <xs:complexContent>
       <xs:extension base="t:RuleOperationType">
         <xs:sequence>
           <xs:element name="Rule" type="t:RuleType"/>
         </xs:sequence>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
  
   <xs:complexType name="DeleteRuleOperationType">
     <xs:complexContent>
       <xs:extension base="t:RuleOperationType">
         <xs:sequence>
           <xs:element name="RuleId" type="xs:string"/>
         </xs:sequence>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
  
   <xs:complexType name="ArrayOfRuleOperationErrorsType">
     <xs:sequence>
       <xs:element name="RuleOperationError" type="t:RuleOperationErrorType" maxOccurs="unbounded"/>
     </xs:sequence>
   </xs:complexType>
  
   <xs:complexType name="RuleOperationErrorType">
     <xs:sequence>
       <xs:element name="OperationIndex" type="xs:int"/>
       <xs:element name="ValidationErrors" type="t:ArrayOfRuleValidationErrorsType"/>
     </xs:sequence>
   </xs:complexType>
  
   <xs:complexType name="ArrayOfRuleValidationErrorsType">
     <xs:sequence>
       <xs:element name="Error" type="t:RuleValidationErrorType" maxOccurs="unbounded"/>
     </xs:sequence>
   </xs:complexType>
  
   <xs:complexType name="RuleValidationErrorType">
     <xs:sequence>
       <xs:element name="FieldURI" type="t:RuleFieldURIType"/>
       <xs:element name="ErrorCode" type="t:RuleValidationErrorCodeType"/>
       <xs:element name="ErrorMessage" type="xs:string"/>
       <xs:element name="FieldValue" type="xs:string"/>
     </xs:sequence>
   </xs:complexType>
  
   <xs:simpleType name="RuleFieldURIType">
     <xs:restriction base="xs:string">
       <xs:enumeration value="RuleId"/>
       <xs:enumeration value="DisplayName"/>
       <xs:enumeration value="Priority"/>
       <xs:enumeration value="IsNotSupported"/>
       <xs:enumeration value="Actions"/>
       <xs:enumeration value="Condition:Categories"/>
       <xs:enumeration value="Condition:ContainsBodyStrings"/>
       <xs:enumeration value="Condition:ContainsHeaderStrings"/>
       <xs:enumeration value="Condition:ContainsRecipientStrings"/>
       <xs:enumeration value="Condition:ContainsSenderStrings"/>
       <xs:enumeration value="Condition:ContainsSubjectOrBodyStrings"/>
       <xs:enumeration value="Condition:ContainsSubjectStrings"/>
       <xs:enumeration value="Condition:FlaggedForAction"/>
       <xs:enumeration value="Condition:FromAddresses"/>
       <xs:enumeration value="Condition:FromConnectedAccounts"/>
       <xs:enumeration value="Condition:HasAttachments"/>
       <xs:enumeration value="Condition:Importance"/>
       <xs:enumeration value="Condition:IsApprovalRequest"/>
       <xs:enumeration value="Condition:IsAutomaticForward"/>
       <xs:enumeration value="Condition:IsAutomaticReply"/>
       <xs:enumeration value="Condition:IsEncrypted"/>
       <xs:enumeration value="Condition:IsMeetingRequest"/>
       <xs:enumeration value="Condition:IsMeetingResponse"/>
       <xs:enumeration value="Condition:IsNDR"/>
       <xs:enumeration value="Condition:IsPermissionControlled"/>
       <xs:enumeration value="Condition:IsReadReceipt"/>
       <xs:enumeration value="Condition:IsSigned"/>
       <xs:enumeration value="Condition:IsVoicemail"/>
       <xs:enumeration value="Condition:ItemClasses"/>
       <xs:enumeration value="Condition:MessageClassifications"/>
       <xs:enumeration value="Condition:NotSentToMe"/>
       <xs:enumeration value="Condition:SentCcMe"/>
       <xs:enumeration value="Condition:SentOnlyToMe"/>
       <xs:enumeration value="Condition:SentToAddresses"/>
       <xs:enumeration value="Condition:SentToMe"/>
       <xs:enumeration value="Condition:SentToOrCcMe"/>
       <xs:enumeration value="Condition:Sensitivity"/>
       <xs:enumeration value="Condition:WithinDateRange"/>
       <xs:enumeration value="Condition:WithinSizeRange"/>
       <xs:enumeration value="Exception:Categories"/>
       <xs:enumeration value="Exception:ContainsBodyStrings"/>
       <xs:enumeration value="Exception:ContainsHeaderStrings"/>
       <xs:enumeration value="Exception:ContainsRecipientStrings"/>
       <xs:enumeration value="Exception:ContainsSenderStrings"/>
       <xs:enumeration value="Exception:ContainsSubjectOrBodyStrings"/>
       <xs:enumeration value="Exception:ContainsSubjectStrings"/>
       <xs:enumeration value="Exception:FlaggedForAction"/>
       <xs:enumeration value="Exception:FromAddresses"/>
       <xs:enumeration value="Exception:FromConnectedAccounts"/>
       <xs:enumeration value="Exception:HasAttachments"/>
       <xs:enumeration value="Exception:Importance"/>
       <xs:enumeration value="Exception:IsApprovalRequest"/>
       <xs:enumeration value="Exception:IsAutomaticForward"/>
       <xs:enumeration value="Exception:IsAutomaticReply"/>
       <xs:enumeration value="Exception:IsEncrypted"/>
       <xs:enumeration value="Exception:IsMeetingRequest"/>
       <xs:enumeration value="Exception:IsMeetingResponse"/>
       <xs:enumeration value="Exception:IsNDR"/>
       <xs:enumeration value="Exception:IsPermissionControlled"/>
       <xs:enumeration value="Exception:IsReadReceipt"/>
       <xs:enumeration value="Exception:IsSigned"/>
       <xs:enumeration value="Exception:IsVoicemail"/>
       <xs:enumeration value="Exception:ItemClasses"/>
       <xs:enumeration value="Exception:MessageClassifications"/>
       <xs:enumeration value="Exception:NotSentToMe"/>
       <xs:enumeration value="Exception:SentCcMe"/>
       <xs:enumeration value="Exception:SentOnlyToMe"/>
       <xs:enumeration value="Exception:SentToAddresses"/>
       <xs:enumeration value="Exception:SentToMe"/>
       <xs:enumeration value="Exception:SentToOrCcMe"/>
       <xs:enumeration value="Exception:Sensitivity"/>
       <xs:enumeration value="Exception:WithinDateRange"/>
       <xs:enumeration value="Exception:WithinSizeRange"/>
       <xs:enumeration value="Action:AssignCategories"/>
       <xs:enumeration value="Action:CopyToFolder"/>
       <xs:enumeration value="Action:Delete"/>
       <xs:enumeration value="Action:ForwardAsAttachmentToRecipients"/>
       <xs:enumeration value="Action:ForwardToRecipients"/>
       <xs:enumeration value="Action:MarkImportance"/>
       <xs:enumeration value="Action:MarkAsRead"/>
       <xs:enumeration value="Action:MoveToFolder"/>
       <xs:enumeration value="Action:PermanentDelete"/>
       <xs:enumeration value="Action:RedirectToRecipients"/>
       <xs:enumeration value="Action:SendSMSAlertToRecipients"/>
       <xs:enumeration value="Action:ServerReplyWithMessage"/>
       <xs:enumeration value="Action:StopProcessingRules"/>
       <xs:enumeration value="IsEnabled"/>
       <xs:enumeration value="IsInError"/>
       <xs:enumeration value="Conditions"/>
       <xs:enumeration value="Exceptions"/>
     </xs:restriction>
   </xs:simpleType>
  
   <xs:simpleType name="RuleValidationErrorCodeType">
     <xs:restriction base="xs:string">
       <xs:enumeration value="ADOperationFailure"/>
       <xs:enumeration value="ConnectedAccountNotFound"/>
       <xs:enumeration value="CreateWithRuleId"/>
       <xs:enumeration value="EmptyValueFound"/>
       <xs:enumeration value="DuplicatedPriority"/>
       <xs:enumeration value="DuplicatedOperationOnTheSameRule"/>
       <xs:enumeration value="FolderDoesNotExist"/>
       <xs:enumeration value="InvalidAddress"/>
       <xs:enumeration value="InvalidDateRange"/>
       <xs:enumeration value="InvalidFolderId"/>
       <xs:enumeration value="InvalidSizeRange"/>
       <xs:enumeration value="InvalidValue"/>
       <xs:enumeration value="MessageClassificationNotFound"/>
       <xs:enumeration value="MissingAction"/>
       <xs:enumeration value="MissingParameter"/>
       <xs:enumeration value="MissingRangeValue"/>
       <xs:enumeration value="NotSettable"/>
       <xs:enumeration value="RecipientDoesNotExist"/>
       <xs:enumeration value="RuleNotFound"/>
       <xs:enumeration value="SizeLessThanZero"/>
       <xs:enumeration value="StringValueTooBig"/>
       <xs:enumeration value="UnsupportedAddress"/>
       <xs:enumeration value="UnexpectedError"/>
       <xs:enumeration value="UnsupportedRule"/>
     </xs:restriction>
   </xs:simpleType>
 </xs:schema>
Show: