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

%3CLINGO-SUB%20id%3D%22lingo-sub-1985147%22%20slang%3D%22en-US%22%3EChange%20in%20delta%20API%20beaviour%20for%20Create%2C%20Update%2C%20Delete%20for%20MS%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1985147%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20has%20been%20observed%20that%20there%20is%20change%20in%20endpoint%20API%20behavior%20for%20Update%20Message%20operation%20for%20MS%20Teams.%20Earlier%2C%20we%20were%20getting%20lastModifiedDateTime%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eproperty%20in%20the%20response%20and%20currently%20there%20is%20another%20property%20added%20called%20as%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ElastEditedDateTime.%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3EThe%20value%20of%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ElastModifiedDateTime%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewas%20earlier%20obtained%20only%20for%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eupdate%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Emessage%20operation%20and%20was%20returned%20as%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Enull%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efor%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Ecreate%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Edelete%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Emessage%20operation.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3ECurrently%2C%20with%20the%20recent%20API%20changes%2C%20the%20value%20of%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ElastModifiedDateTime%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eis%20obtained%20in%20all%203%20cases%20-%20Create%2C%20Update%20and%20delete.%20On%20the%20other%20hand%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3ElastEditedDateTime%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ereturns%20a%20value%20in%20response%20only%20when%20we%20are%20updating%20the%20message.%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3EEndpoint%20Response%20%3A%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3ECreate%20%3A%3C%2FSTRONG%3E%3CBR%20%2F%3E%22createdDateTime%22%3A%20%222020-12-11T07%3A00%3A33.207Z%22%2C%3CBR%20%2F%3E%22lastModifiedDateTime%22%3A%20%222020-12-11T07%3A00%3A33.207Z%22%2C%3CBR%20%2F%3E%22lastEditedDateTime%22%3A%20null%2C%3CBR%20%2F%3E%22deletedDateTime%22%3A%20null%3C%2FP%3E%3CP%3E%3CSTRONG%3EUpdate%20%3A%3C%2FSTRONG%3E%3CBR%20%2F%3E%22createdDateTime%22%3A%20%222020-12-11T07%3A00%3A33.207Z%22%2C%3CBR%20%2F%3E%22lastModifiedDateTime%22%3A%20%222020-12-11T07%3A03%3A09.26Z%22%2C%3CBR%20%2F%3E%22lastEditedDateTime%22%3A%20%222020-12-11T07%3A03%3A09.114Z%22%2C%3CBR%20%2F%3E%22deletedDateTime%22%3A%20null%3C%2FP%3E%3CP%3E%3CSTRONG%3Edelete%20%3A%3C%2FSTRONG%3E%3CBR%20%2F%3E%22createdDateTime%22%3A%20%222020-12-11T07%3A00%3A33.207Z%22%2C%3CBR%20%2F%3E%22lastModifiedDateTime%22%3A%20%222020-12-11T07%3A04%3A07.222Z%22%2C%3CBR%20%2F%3E%22lastEditedDateTime%22%3A%20null%2C%3CBR%20%2F%3E%22deletedDateTime%22%3A%20%222020-12-11T07%3A03%3A09.26Z%22%3C%2FP%3E%3CP%3ECan%20you%20please%20help%20us%20with%20understanding%20the%20working%20of%20lastEditedDateTime%3CSPAN%3E%26nbsp%3B%20and%26nbsp%3BlastModifiedDateTime%20.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1985147%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2024083%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20in%20delta%20API%20beaviour%20for%20Create%2C%20Update%2C%20Delete%20for%20MS%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2024083%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F122989%22%20target%3D%22_blank%22%3E%40cstest%20cstest%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20reaching%20out%20to%20us%2C%20we%20will%20investigate%20and%20if%20we%20require%20further%20information%20we%20will%20reach%20out.%3CBR%20%2F%3EThanks%2C%3CBR%20%2F%3EJagadeesh%3CBR%20%2F%3ETeams%20Dev%20Community%20Response%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2035005%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20in%20delta%20API%20beaviour%20for%20Create%2C%20Update%2C%20Delete%20for%20MS%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2035005%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F122989%22%20target%3D%22_blank%22%3E%40cstest%20cstest%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EBoth%26nbsp%3BlastModifiedDateTime%20and%20lastEditedDateTime%20are%20read-only%20properties.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EThe%20value%20of%20lastModifiedDateTime%20appears%20when%20the%20message%20is%20created%20(initial%20setting)%20or%20edited%2C%20including%20when%20a%20reaction%20is%20added%20or%20removed%20i.e%20on%20any%20CRUD%20operation%20made.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20value%20of%20lastEditedDateTime%20appears%20only%20when%20edits%20to%20the%20message%20were%20made.%20If%20no%20edits%20are%20made%20the%20value%20is%26nbsp%3Bnull%20i.e%20when%20message%20is%20edited.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3EThanks%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EJagadeesh%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3ETeams%20Dev%20Community%20Response%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional 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