[英]Exchange 2013 EWS PHP - FindItem Restriction Recipient
Is there a way to search for the recipient in EWS? 有没有办法在EWS中搜索收件人? I use this restriction for searching for the sender:
我使用此限制来搜索发件人:
<IsEqualTo>
<FieldURI FieldURI="message:From" />
<FieldURIOrConstant>
<Constant Value="(searchEmailAddress)" />
</FieldURIOrConstant>
</IsEqualTo>
<IsEqualTo>
<FieldURI FieldURI="message:Sender" />
<FieldURIOrConstant>
<Constant Value="(searchEmailAddress)" />
</FieldURIOrConstant>
</IsEqualTo>
But I can't find a way to search for the recipient. 但是我找不到搜索收件人的方法。
DisplayTo is the only recipient property returned by the FindItem operation. DisplayTo是FindItem操作返回的唯一收件人属性。 So, to search on DisplayTo, do this:
因此,要在DisplayTo上搜索,请执行以下操作:
<m:FindItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>AllProperties</t:BaseShape>
</m:ItemShape>
<m:IndexedPageItemView MaxEntriesReturned="1" Offset="0" BasePoint="Beginning" />
<m:Restriction>
<t:Contains ContainmentMode="Substring" ContainmentComparison="IgnoreCase">
<t:FieldURI FieldURI="item:DisplayTo" />
<t:Constant Value="Somebody" />
</t:Contains>
</m:Restriction>
<m:ParentFolderIds>
<t:DistinguishedFolderId Id="inbox" />
</m:ParentFolderIds>
</m:FindItem>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.