nmarus / node-ews

A simple JSON wrapper for the Exchange Web Services (EWS) SOAP API.
MIT License
116 stars 52 forks source link

Not able to update a meeting request using updateItem operation #131

Open ankitchoudary opened 4 years ago

ankitchoudary commented 4 years ago

Hi ,

I am facing issue in updating a meeting invite using updateItem operation. I am getting following error response: MessageText: 'The meeting request has already been sent and might not be updated.' ResponseCode: 'ErrorSentMeetingRequestUpdate'

I am using latest version of node-ews. Has anyone faced this issue.

Please find below the payload of my request: { "attributes": { "MessageDisposition": "SaveOnly", "SendMeetingInvitationsOrCancellations": "SendToAllAndSaveCopy", "ConflictResolution": "AlwaysOverwrite" }, "ItemChanges": { "ItemChange": { "ItemId": { "attributes": { "Id": "AQAjAGRudmdsLnNjaGVkdWxpbmcuTkdQU1Rlc3RAZG52Z2wuY29tAEYAAAP+mayWq0ChQL8/ccOK6UJlBwBi1KyqxkOtTagtKPVYrKeIAAACAQkAAABi1KyqxkOtTagtKPVYrKeIAAIiNCfFAAAA", "ChangeKey": "CwAAABYAAABi1KyqxkOtTagtKPVYrKeIAAIiHuxz" } }, "Updates": [ { "SetItemField": { "FieldURI": { "attributes": { "FieldURI": "item:Body" } }, "CalendarItem": { "Body": "Moving to new Date" } } }, { "SetItemField": { "FieldURI": { "attributes": { "FieldURI": "calendar:Start" } }, "CalendarItem": { "Start": "2020-10-10T08:00:00Z" } } }, { "SetItemField": { "FieldURI": { "attributes": { "FieldURI": "calendar:End" } }, "CalendarItem": { "End": "2020-10-10T17:00:00Z" } } } ] } } }

viictorh commented 1 year ago

Hi, did you solve this issue?

I'm trying to update an e-mail and get the following response:

{"ResponseMessages":{"UpdateItemResponseMessage":{"attributes":{"ResponseClass":"Error"},"MessageText":"An internal server error occurred. The operation failed., Object reference not set to an instance of an object.","ResponseCode":"ErrorInternalServerError","DescriptiveLinkKey":0,"Items":null}}}

{ "attributes":{ "MessageDisposition":"SaveOnly", "ConflictResolution":"AlwaysOverwrite" }, "ItemChanges":{ "ItemChange":{ "ItemId":{ "attributes":{ "Id":"suppressed", "ChangeKey":"suppressed" } }, "Updates":{ "SetItemField":{ "FieldURI":{ "attributes":{ "FieldURI":"item:Sensitivity" }, "Message":{ "Sensitivity":"Confidencial" } } } } } } }

Anyone knows how to do that? I'm trying to mark a specific email as read, but I get the same error