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