exchangewebservices - Exchange Web服务-获取所有可用的“ExtendedProperty”的列表

标签 exchangewebservices

我有一个Exchange Server,其中包含带有自定义字段的项目(例如,具有自定义ExtendedProperty值的“联系人”和“事件”)。我正在寻找一种使用Exchange Web服务(EWS)显示这些字段的方法。

根据Microsoft documentation,有一种使用ExtendedProperty方法检索单个FindItem值的简单方法。例:

<?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以及PropertyTypePropertyName。就我而言,我不知道可以使用哪些PropertySetIDs,更不用说PropertyTypePropertyName了。有没有办法获取所有可用的扩展属性的列表?

最佳答案

无法获得扩展(自定义)属性的列表。我使用的是Independentsoft的API,他们告诉我,您必须知道(请求)要使用EWS检索哪些属性。

关于exchangewebservices - Exchange Web服务-获取所有可用的“ExtendedProperty”的列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11636548/

相关文章:

c# - 使用 EWS 发送电子邮件

exchangewebservices - EWS 托管 API - 如何将项目从一个邮箱复制到另一个邮箱

exchangewebservices - 通过 EWS 获取登录用户的 SMTP 地址?

c# - 创建 .eml 文件而不先将 EmailMessage 保存到邮箱

c# - 从收件箱下载附件时如何减少 EWS 调用?

azure - 获取 token 异步: What Kind of Token is being returned?

c# - 是否可以使用 c# 中的 Exchange Web 服务分配角色?

c# - 如何在一次更新中将通过 EWS 获取的所有电子邮件标记为已读?

c# - EWS 获得提醒 <= 当前时间的约会

c# - 删除 EWS 中的 Exchange 事件修改/删除(即恢复事件)