OfficeDev / ews-managed-api

Other
584 stars 316 forks source link

Is possible to use delegate access with the GetConversationItems operation? #200

Open murphypaj opened 6 years ago

murphypaj commented 6 years ago

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 = , 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..

dseph commented 6 years ago

Try setting the X-AnchorMailboxHeadder to the target mailbox. Can you add your full request?

murphypaj commented 6 years ago

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/">

IdOnly Text TreeOrderDescending Header is set but returns the same error. "The specified object was not found in the store" Thanks
murphypaj commented 6 years ago

I am able to use delegation to FindItems, so I definitely have access, and to also GetItem to retrieve the ConversationId