ews-managed-api
ews-managed-api copied to clipboard
Is possible to use delegate access with the GetConversationItems operation?
Hi guys,
I think I've exhausted this problem I'm having. I seems the operation doesn't support Delegate access? Which seems a bit strange to me?
As a workaround, I've tried using FindItem with my searchFilter set to CinversationId = <conId>, which does return a list of items in the Conv. but doesn't actually return the email body which is what I'm after.
Does anyone know of any other possible workarounds? Many thanks..
Try setting the X-AnchorMailboxHeadder to the target mailbox. Can you add your full request?
Hi dseph, thanks, I've tried it but it's not working. Ideally I should be able to get the UniqueBody from GetItem but it doesn't return anything?
request below <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="Exchange2013" /> </soap:Header> soap:Body <m:GetConversationItems> <m:ItemShape> <t:BaseShape>IdOnly</t:BaseShape> <t:UniqueBodyType>Text</t:UniqueBodyType> <t:AdditionalProperties> <t:FieldURI FieldURI="item:Subject" /> <t:FieldURI FieldURI="item:DateTimeReceived" /> <t:FieldURI FieldURI="item:UniqueBody" /> </t:AdditionalProperties> </m:ItemShape> <m:FoldersToIgnore> <t:DistinguishedFolderId Id="deleteditems" /> <t:DistinguishedFolderId Id="drafts" /> </m:FoldersToIgnore> <m:SortOrder>TreeOrderDescending</m:SortOrder> <m:Conversations> <t:Conversation> <t:ConversationId Id="AAQkADVmY2M3YTNmLTRmNTAtNDgxOS05N2ZhLWMyNTc0YWZlMDhlNwAQAIec3kh1KE/lp4rDvd7dwC4=" /> </t:Conversation> </m:Conversations> </m:GetConversationItems> </soap:Body> </soap:Envelope>
Header is set but returns the same error. "The specified object was not found in the store"
Thanks
I am able to use delegation to FindItems, so I definitely have access, and to also GetItem to retrieve the ConversationId