Last active
August 29, 2015 14:12
-
-
Save asith-w/8f360134e2cb9c315f17 to your computer and use it in GitHub Desktop.
find Items By subject or body soap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> | |
<soap:Header> | |
<t:RequestServerVersion Version="Exchange2010" /> | |
</soap:Header> | |
<soap:Body> | |
<m:FindItem Traversal="Shallow"> | |
<m:ItemShape> | |
<t:BaseShape>IdOnly</t:BaseShape> | |
<t:AdditionalProperties> | |
<t:FieldURI FieldURI="item:Subject" /> | |
<t:FieldURI FieldURI="item:DateTimeReceived" /> | |
</t:AdditionalProperties> | |
</m:ItemShape> | |
<m:IndexedPageItemView MaxEntriesReturned="50" Offset="0" BasePoint="Beginning" /> | |
<m:Restriction> | |
<t:Or> | |
<t:Contains ContainmentMode="Substring" ContainmentComparison="IgnoreCase"> | |
<t:FieldURI FieldURI="item:Subject" /> | |
<t:Constant Value="Test" /> | |
</t:Contains> | |
<t:Contains ContainmentMode="Substring" ContainmentComparison="IgnoreCase"> | |
<t:FieldURI FieldURI="item:Body" /> | |
<t:Constant Value="homecoming" /> | |
</t:Contains> | |
</t:Or> | |
</m:Restriction> | |
<m:SortOrder> | |
<t:FieldOrder Order="Descending"> | |
<t:FieldURI FieldURI="item:DateTimeReceived" /> | |
</t:FieldOrder> | |
</m:SortOrder> | |
<m:ParentFolderIds> | |
<t:DistinguishedFolderId Id="inbox" /> | |
</m:ParentFolderIds> | |
</m:FindItem> | |
</soap:Body> | |
</soap:Envelope> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://msdn.microsoft.com/en-us/library/office/dd633693(v=exchg.80).aspx