【发布时间】:2016-08-26 08:09:22
【问题描述】:
我有一个 Exchange Server,其中包含具有自定义字段的项目(例如,具有自定义 ExtendedProperty 值的联系人和事件)。我正在寻找一种使用 Exchange Web 服务 (EWS) 显示这些字段的方法。
根据Microsoft documentation,有一种使用FindItem 方法检索单个ExtendedProperty 值的简单方法。示例:
<?xml version="1.0" encoding="utf-8"?>
<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>AllProperties</t:BaseShape>
<t:AdditionalProperties>
<t:ExtendedFieldURI PropertySetId="c11ff724-aa03-4555-9952-8fa248a11c3e"
PropertyName="Expiration Date" PropertyType="String" />
</t:AdditionalProperties>
</m:ItemShape>
<m:IndexedPageItemView MaxEntriesReturned="10" Offset="0" BasePoint="Beginning" />
<m:ParentFolderIds>
<t:DistinguishedFolderId Id="inbox" />
</m:ParentFolderIds>
</m:FindItem>
</soap:Body>
</soap:Envelope>
但是,这需要PropertySetID 以及PropertyType 和PropertyName。就我而言,我不知道有哪些PropertySetIDs 可用,更不用说PropertyType 和PropertyName。有没有办法获取所有可用扩展属性的列表?
【问题讨论】: