Change in delta API beaviour for Create, Update, Delete for MS Teams

Copper Contributor

It has been observed that there is change in endpoint API behavior for Update Message operation for MS Teams. Earlier, we were getting lastModifiedDateTime property in the response and currently there is another property added called as lastEditedDateTime.

  • The value of lastModifiedDateTime was earlier obtained only for update message operation and was returned as null for create and delete message operation.

  • Currently, with the recent API changes, the value of lastModifiedDateTime is obtained in all 3 cases - Create, Update and delete. On the other hand, lastEditedDateTime returns a value in response only when we are updating the message.

Endpoint Response :
Create :
"createdDateTime": "2020-12-11T07:00:33.207Z",
"lastModifiedDateTime": "2020-12-11T07:00:33.207Z",
"lastEditedDateTime": null,
"deletedDateTime": null

Update :
"createdDateTime": "2020-12-11T07:00:33.207Z",
"lastModifiedDateTime": "2020-12-11T07:03:09.26Z",
"lastEditedDateTime": "2020-12-11T07:03:09.114Z",
"deletedDateTime": null

delete :
"createdDateTime": "2020-12-11T07:00:33.207Z",
"lastModifiedDateTime": "2020-12-11T07:04:07.222Z",
"lastEditedDateTime": null,
"deletedDateTime": "2020-12-11T07:03:09.26Z"

Can you please help us with understanding the working of lastEditedDateTime  and lastModifiedDateTime .

2 Replies

Hi @cstest cstest ,

Thank you for reaching out to us, we will investigate and if we require further information we will reach out.
Thanks,
Jagadeesh
Teams Dev Community Response

Hi @cstest cstest ,

Both lastModifiedDateTime and lastEditedDateTime are read-only properties.


The value of lastModifiedDateTime appears when the message is created (initial setting) or edited, including when a reaction is added or removed i.e on any CRUD operation made.

 

The value of lastEditedDateTime appears only when edits to the message were made. If no edits are made the value is null i.e when message is edited.

Thanks,
Jagadeesh
Teams Dev Community Response