4 Protocol Examples

In this example, the client sends a request to retrieve user retention policy tags.

 <?xml version="1.0" encoding="utf-8" ?>
 <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
   <soap:Header>
     <t:RequestServerVersion Version="Exchange2013"/>
     <t:TimeZoneContext>
       <t:TimeZoneDefinition Id="Pacific Standard Time"/>
     </t:TimeZoneContext>
   </soap:Header>
   <soap:Body>
     <m:GetUserRetentionPolicyTags/>
   </soap:Body>
 </soap:Envelope>

In this response example, the server responds with all personal, system, and default retention tags.

 <?xml version="1.0" encoding="utf-8"?>
 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Header>
     <h:ServerVersionInfo MajorVersion="15" MinorVersion="0" MajorBuildNumber="430" MinorBuildNumber="0" Version="Exchange2013" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
   </s:Header>
   <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <GetUserRetentionPolicyTagsResponse ResponseClass="Success" xmlns="http://schemas.microsoft.com/exchange/services/2006/types>
       <ResponseCode>NoError</ResponseCode>
       <RetentionPolicyTags>
         <RetentionPolicyTag xmlns="http://schemas.microsoft.com/exchange/services/2006/types>
           <DisplayName>Recoverable Items 14 days move to archive</DisplayName>
           <RetentionId>80feb2e9-8e6f-4f67-06ae585982</RetentionId>
           <RetentionPeriod>14</RetentionPeriod>
           <Type>Personal</Type>
           <RetentionAction>MoveToArchive</RetentionAction>
           <IsVisible>false</IsVisible>
           <OptedInto>false</OptedInto>
           <IsArchive>true</IsArchive>
         </RetentionPolicyTag>
         <RetentionPolicyTag xmlns="http://schemas.microsoft.com/exchange/services/2006/types" >
           <DisplayName>Never Delete</DisplayName>
           <RetentionId>414c6a14-3ed5-432e-620a8278f0</RetentionId>
           <RetentionPeriod>0</RetentionPeriod>
           <Type>Personal</Type>
           <RetentionAction>None</RetentionAction>
           <IsVisible>true</IsVisible>
           <OptedInto>false</OptedInto>
           <IsArchive>false</IsArchive>
         </RetentionPolicyTag>
         <RetentionPolicyTag xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
           <DisplayName>5 Year Delete</DisplayName>
           <RetentionId>1d128b50-14f2-4417-cb7d015fd7</RetentionId>
           <RetentionPeriod>1825</RetentionPeriod>
           <Type>Personal</Type>
           <RetentionAction>DeleteAndAllowRecovery</RetentionAction>
           <IsVisible>true</IsVisible>
           <OptedInto>false</OptedInto>
           <IsArchive>false</IsArchive>
         </RetentionPolicyTag>
         <RetentionPolicyTag xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
           <DisplayName>1 Year Delete</DisplayName>
           <RetentionId>9a3c36dd-c0eb-424a-8bd17f855</RetentionId>
           <RetentionPeriod>365</RetentionPeriod>
           <Type>Personal</Type>
           <RetentionAction>DeleteAndAllowRecovery</RetentionAction>
           <IsVisible>true</IsVisible>
           <OptedInto>false</OptedInto>
           <IsArchive>false</IsArchive>
         </RetentionPolicyTag>
         <RetentionPolicyTag xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
           <DisplayName>6 Month Delete</DisplayName>
           <RetentionId>d94993b5-e987-4275-2057cfb2b8</RetentionId>
           <RetentionPeriod>180</RetentionPeriod>
           <Type>Personal</Type>
           <RetentionAction>DeleteAndAllowRecovery</RetentionAction>
           <IsVisible>true</IsVisible>
           <OptedInto>false</OptedInto>
           <IsArchive>false</IsArchive>
         </RetentionPolicyTag>
         <RetentionPolicyTag xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
           <DisplayName>1 Month Delete</DisplayName>
           <RetentionId>fc92a703-51e3-411f-966668ee49c</RetentionId>
           <RetentionPeriod>30</RetentionPeriod>
           <Type>Personal</Type>
           <RetentionAction>DeleteAndAllowRecovery</RetentionAction>
           <IsVisible>true</IsVisible>
           <OptedInto>false</OptedInto>
           <IsArchive>false</IsArchive>
         </RetentionPolicyTag>
         <RetentionPolicyTag xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
           <DisplayName>1 Week Delete</DisplayName>
           <RetentionId>2d26745c-8566-4dc3-88f56443b7b</RetentionId>
           <RetentionPeriod>7</RetentionPeriod>
           <Type>Personal</Type>
           <RetentionAction>DeleteAndAllowRecovery</RetentionAction>
           <IsVisible>true</IsVisible>
           <OptedInto>false</OptedInto>
           <IsArchive>false</IsArchive>
         </RetentionPolicyTag>
         <RetentionPolicyTag xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
           <DisplayName>Personal never move to archive</DisplayName>
           <RetentionId>c6c9ad12-9e46-053-e1ea189ab0cc</RetentionId>
           <RetentionPeriod>0</RetentionPeriod>
           <Type>Personal</Type>
           <RetentionAction>None</RetentionAction>
           <IsVisible>true</IsVisible>
           <OptedInto>false</OptedInto>
           <IsArchive>true</IsArchive>
         </RetentionPolicyTag>
         <RetentionPolicyTag xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
           <DisplayName>Personal 5 year move to archive</DisplayName>
           <RetentionId>790300f2-2ffd-4380-2daadc05c8</RetentionId>
           <RetentionPeriod>1825</RetentionPeriod>
           <Type>Personal</Type>
           <RetentionAction>MoveToArchive</RetentionAction>
           <IsVisible>true</IsVisible>
           <OptedInto>false</OptedInto>
           <IsArchive>true</IsArchive>
         </RetentionPolicyTag>
         <RetentionPolicyTag xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
           <DisplayName>Personal 1 year move to archive</DisplayName>
           <RetentionId>66904d6f-bf73-4460-fad894a0f</RetentionId>
           <RetentionPeriod>365</RetentionPeriod>
           <Type>Personal</Type>
           <RetentionAction>MoveToArchive</RetentionAction>
           <IsVisible>true</IsVisible>
           <OptedInto>false</OptedInto>
           <IsArchive>true</IsArchive>
         </RetentionPolicyTag>
         <RetentionPolicyTag xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
           <DisplayName>Default 2 year move to archive</DisplayName>
           <RetentionId>9acbb441-faf8-b3867bdf399c</RetentionId>
           <RetentionPeriod>730</RetentionPeriod>
           <Type>All</Type>
           <RetentionAction>MoveToArchive</RetentionAction>
           <IsVisible>false</IsVisible>
           <OptedInto>false</OptedInto>
           <IsArchive>true</IsArchive>
         </RetentionPolicyTag>
       </RetentionPolicyTags>
     </GetUserRetentionPolicyTagsResponse>
   </s:Body>
 </s:Envelope>
Show: