George Roberts
George Roberts

Reputation: 61

Outlook REST API Flagging Message losing start date

I'm building an Outlook Add-In and using the Outlook REST API 2.0. When updating a mail message to flag the message for follow-up, the update is accepted and in the Outlook Web client it briefly shows the start and due dates, but within a few seconds the start date goes away. When looking at the message through the API, the start date is completely removed, even though it was successfully added.

The API is PATCH Office.context.mailbox.restUrl + '/v2.0/me/messages/' + messageId ...

EDIT: I confirmed that this same behavior is exhibited in the Graph API as well.

As soon as the API is called, the UI on the message is updated:

enter image description here

Shortly after that (sometimes within a second, sometimes a little longer), the UI changes to:

enter image description here

And once the UI updates, if you query the API for the message and look at the Flag property, the StartDateTime object is completely gone.

Has anyone seen this or know why it might be happening?

Upvotes: 1

Views: 167

Answers (1)

Sivaprakash-MSFT
Sivaprakash-MSFT

Reputation: 526

Checked it on Graph with the following payload for PATCH-Message call and it seems to be working fine.

{"flag":{"dueDateTime":{"dateTime":"2020-08-20T00:00:00.0000000","timeZone":"Asia/Kolkata"},"flagStatus":"flagged","startDateTime":{"dateTime":"2020-08-14T00:00:00.0000000","timeZone":"Asia/Kolkata"}}}

I suspect that there is another application/outlook add-in that's removing this flag. Can you check once?

Upvotes: 1

Related Questions