Our IT has provided me with a service account ([email protected]
) that has delegate rights to a room's mailbox ([email protected]
) and a user's mailbox ([email protected]
).
In Outlook, running as user.a
, I created an event using EX-Room-A
as room. Now here is the matrix what happens in Outlook Web Access and by using the EWS API FindItems (resp. GetItem):
using the credentials of
user.a
, I see the correct event details (Subject and Body) on the mailbox ofuser.a
. When accessing the mailbox ofex-room-a
, I get "ErrorFolderNotFound: The specified folder could not be found in the store."Using the credentials of
ex-sa-devtest
on mailbox ofex-room-a
, I see Subject="User A " (note the space at the end) and Body is empty. On mailbox ofuser.a
, I see correct Subject and Body.
What causes the "rewrite" of the Subject field and the emptying of the Body field when the service account accesses the room mailbox?
The SOAP XML I use is:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/messages">
<SOAP-ENV:Header><ns1:RequestServerVersion Version="Exchange2013_SP1"/><ns1:TimeZoneContext><ns1:TimeZoneDefinition Id="W. Europe Standard Time"/></ns1:TimeZoneContext></SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns2:FindItem>
<ns2:ItemShape><ns1:BaseShape>AllProperties</ns1:BaseShape></ns2:ItemShape>
<ns2:CalendarView StartDate="2017-12-06T00:00:00+01:00" EndDate="2017-12-06T23:59:59+01:00"/>
<ns2:ParentFolderIds>
<ns1:DistinguishedFolderId Id="calendar"><ns1:Mailbox><ns1:EmailAddress>[email protected]</ns1:EmailAddress></ns1:Mailbox></ns1:DistinguishedFolderId>
</ns2:ParentFolderIds>
</ns2:FindItem>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>