Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

EWS error updating item.

$
0
0

Hi, im using the following code to remove the read receipt from a received email that is in the inbox.

$item.IsReadReceiptRequested = $false
$Item.Update([Microsoft.Exchange.WebServices.Data.ConflictResolutionMode]::AlwaysOverwrite)

However i'm getting the following error below.......can you advise where i've gone wrong please?

Thanks

Exception calling "Update" with "1" argument(s): "Update operation is invalid for property
of a sent message."
At line:217 char:7
+                         
$Item.Update([Microsoft.Exchange.WebServices.Data.ConflictResolutionMode]: ...
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ServiceResponseException


Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>