使用EWS operations到目前爲止,我可以在一定時間範圍內獲得所有會議。我如何獲得會議的與會者?EWS操作 - 獲得會議與會者
我讀過here,我可以通過會議ID發送附加請求以獲得更多屬性(LoadPropertiesForItem)。
什麼是相應的SOAP操作?
感謝
private String getXMLRequestForRetrieve(DateTime start, DateTime end, String meetingRoomEmailToQuery){
return ""+
"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:typ=\"http://schemas.microsoft.com/exchange/services/2006/types\" xmlns:mes=\"http://schemas.microsoft.com/exchange/services/2006/messages\">"+
"<soapenv:Header>"+
"<typ:RequestServerVersion Version=\"Exchange2016\"/>"+
"<typ:MailboxCulture>en-US</typ:MailboxCulture>"+
"<typ:TimeZoneContext>"+
"<typ:TimeZoneDefinition Id=\"W. Europe Standard Time\"/>"+
"</typ:TimeZoneContext>"+
"</soapenv:Header>"+
"<soapenv:Body>"+
"<mes:FindItem Traversal=\"Shallow\">"+
"<mes:ItemShape>"+
"<typ:BaseShape>AllProperties</typ:BaseShape>"+ // AllProperties, IdOnly
"<typ:AdditionalProperties>"+
"<typ:FieldURI FieldURI=\"item:Subject\" /> "+
"<typ:FieldURI FieldURI=\"item:DateTimeCreated\" />"+
"<typ:FieldURI FieldURI=\"item:Sensitivity\" />"+
"<typ:FieldURI FieldURI=\"calendar:Start\" />"+
"<typ:FieldURI FieldURI=\"calendar:End\" />"+
"<typ:FieldURI FieldURI=\"calendar:IsCancelled\" />"+
"<typ:FieldURI FieldURI=\"calendar:Organizer\"/>"+
// "<typ:FieldURI FieldURI=\"item:Body\" />"+
// "<typ:FieldURI FieldURI=\"calendar:RequiredAttendees\"/>"+
"</typ:AdditionalProperties>"+
"</mes:ItemShape>"+
"<mes:CalendarView MaxEntriesReturned=\"1000\""+
" StartDate=\""+start.toString(patternFormat)+
"\" EndDate=\""+end.toString(patternFormat)+"\"/>"+ // 2016-06-10T07:00:00Z
"<mes:ParentFolderIds>"+
"<typ:DistinguishedFolderId Id=\"calendar\">"+
"<typ:Mailbox>"+
"<typ:EmailAddress>"+meetingRoomEmailToQuery+"</typ:EmailAddress>"+
"</typ:Mailbox>"+
"</typ:DistinguishedFolderId>"+
"</mes:ParentFolderIds>"+
"</mes:FindItem>"+
"</soapenv:Body>"+
"</soapenv:Envelope>";
}