2
我有一個EmailMessage項目保存在Draft文件夾中。我需要在瀏覽器中打開其編輯窗體,但無法找到Web客戶端使用的ID。在documentation有這樣的屬性,但它與Microsoft Exchange Server 2007失敗。什麼是替代? 任何幫助表示讚賞。如何使用EWS託管API獲取Exchange 2007中的項目Web客戶端ID
我有一個EmailMessage項目保存在Draft文件夾中。我需要在瀏覽器中打開其編輯窗體,但無法找到Web客戶端使用的ID。在documentation有這樣的屬性,但它與Microsoft Exchange Server 2007失敗。什麼是替代? 任何幫助表示讚賞。如何使用EWS託管API獲取Exchange 2007中的項目Web客戶端ID
我找到了。
ExchangeService service = new ExchangeService();
EmailMessage message = EmailMessage.Bind(new ItemId("someId"));
var alternateId = new AlternateId();
alternateId.UniqueId = message.Id.UniqueId;
alternateId.Mailbox = "somemailbox";
alternateId.Format = IdFormat.EwsId;
var convertedId = service.ConverId(alternateId, Format.OwaId) as AlternateId;
和convertedId.UniqueId是我所需要的;