question

MarioFuchs-8078 avatar image
0 Votes"
MarioFuchs-8078 asked ·

Exchange 2019 CU8 - EWS - FirstClassProperties

Hi,

im trying to get exchange email items via EWS. Accessing One Mailbox with "FirstClassProperties" returns "No mailbox with such guid".

If we use a custom property set it just works fine. Any ideas?

THIS ONE - ERROR "No mailbox with such GUID"

$PropSet = New-object Microsoft.Exchange.WebServices.Data.PropertySet([Microsoft.Exchange.WebServices.Data.BasePropertySet]::FirstClassProperties)

$PSItem.Load($PropSet)

THIS ONE WORKS

$PropSet = New-object Microsoft.Exchange.WebServices.Data.PropertySet([Microsoft.Exchange.WebServices.Data.BasePropertySet]::IdOnly, [Microsoft.Exchange.WebServices.Data.ItemSchema]::Subject,
[Microsoft.Exchange.WebServices.Data.ItemSchema]::Body,
[Microsoft.Exchange.WebServices.Data.ItemSchema]::Attachments,
[Microsoft.Exchange.WebServices.Data.ItemSchema]::DateTimeSent,
[Microsoft.Exchange.WebServices.Data.EmailMessageSchema]::Sender
)

$PSItem.Load($PropSet)

Maybe anyone has an hint. On another mailbox both are working correctly. (Already recreated the mailbox)

Regards,

Mario

office-exchange-server-dev
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers