Reputation: 6347
Using EWS operations (SOAP) how do I get the Tentative status of a meeting? I can get it using a GetItem request setting AllProperties instead of IdOnly as BaseShape value but I would like to avoid such a big xml response.
Any suggestion?
Request:
<m:GetItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>AllProperties</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="item:Subject"/>
<t:FieldURI FieldURI="item:TextBody"/>
</t:AdditionalProperties>
</m:ItemShape>
Response:
<t:IsAllDayEvent>false</t:IsAllDayEvent>
<t:LegacyFreeBusyStatus>Tentative</t:LegacyFreeBusyStatus>
( Full request:)
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<RequestServerVersion xmlns="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2013" soap:mustUnderstand="0"/>
</soap:Header>
<soap:Body>
<m:GetItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>AllProperties</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="item:Subject"/>
<t:FieldURI FieldURI="item:TextBody"/>
</t:AdditionalProperties>
</m:ItemShape>
<m:ItemIds>
<t:ItemId Id="AAMkAGYxMTJlYTgyLTBmYzEtNGYxZS1iYmViLTI4YmUwNjliN2MzNgBGAAAAAAACkhFyvlR7SJUlGy2d/KnVBwCB2CePXX/CToeJqw2EFOoNAAAAAAENAADu1Rjhkj+hRIRrpcOyI08fAAAXZyRiAAA=" ChangeKey="DwAAABYAAADu1Rjhkj+hRIRrpcOyI08fAAAXZ6Nr"/>
</m:ItemIds>
</m:GetItem>
</soap:Body>
</soap:Envelope>
Upvotes: 0
Views: 70
Reputation: 22032
You should be able to do it using calendar:LegacyFreeBusyStatus eg
<m:GetItem Traversal="Shallow">
<m:ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="item:Subject"/>
<t:FieldURI FieldURI="item:TextBody"/>
<t:FieldURI FieldURI="calendar:LegacyFreeBusyStatus"/>
</t:AdditionalProperties>
</m:ItemShape>
Upvotes: 1