question

BipinP-0506 avatar image
0 Votes"
BipinP-0506 asked Sridevi-MSFT edited

Undo-Deleted realtime notification receiving Edited DateTime value even though the message has not been edited.

In following scenario we are receiving EditedDateTime value even though message has not been edited.

  1. Subscribe Ms-Teams subscription https://graph.microsoft.com/v1.0/subscriptions with chat resource. e.g https://docs.microsoft.com/en-us/graph/api/subscription-post-subscriptions?view=graph-rest-1.0&tabs=http

  2. Send message from one of the Team or Chat Item. {Do it from https://teams.microsoft.com/_#/ browser}

  3. Receive the notification with createdDateTime value but lastEditedDateTime and deletedDateTime are null respectively.

  4. Delete the message from {https://teams.microsoft.com/_#/ browser}

  5. Receive the notification with createdDateTime and deletedDateTime with value but lastEditedDateTime value is null.

  6. Undo delete action from {https://teams.microsoft.com/_#/ browser}

  7. Receive the notification with createdDateTime and lastEditedDateTime with value but deletedDateTime value is null.90607-undo-deleted-incorrect-details.jpg

  8. Looks not correct because original message was not edited any time.

When I called a https://graph.microsoft.com/beta/teams/<TeamID>/channels/<ChannelId>/messages?$top=1 from Postman
I got the correct details. Receive the data createdDateTime with value but lastEditedDateTime and deletedDateTime are null respectively.

In real-time notification, we are getting incorrect data. I have attached snapshot for more information.

The cause is we are not able to understand whether the message was actually edited or undo deleted.




office-teams-app-devmicrosoft-graph-teamworkmicrosoft-graph-notifications
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BipinP-0506- Will repro this at my end and will let you know.

0 Votes 0 ·

1 Answer

Sridevi-MSFT avatar image
0 Votes"
Sridevi-MSFT answered Sridevi-MSFT edited

We have raised a bug for this issue and concerned team is working on it.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.