question

PublicAccount-5217 avatar image
0 Votes"
PublicAccount-5217 asked PublicAccount-5217 commented

no notification after contact changed

I tested the contact subscription days before, and it works fine except no feedback after delete contact. But from yersterday, after contact created/updated/deleted, no notification back to my server. There is no firewall and I had passed the validation for my contact subscription.
Here is the subsription:
{
"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#subscriptions/$entity",
"id":"092f00b8-4553-4515-aad7-05f9f667e870",
"resource":"me/contacts",
"applicationId":"1a60750b-ee4a-4d59-a006-6555798beadf",
"changeType":"created,updated,deleted",
"clientState":null,
"notificationUrl":"https://e6ed-38-99-100-2.ngrok.io/nws/calendar/1.0/notification/callback/contact/{PII}/{PII}?zm_aid={PII}&zm_haid=74",
"notificationQueryOptions":null,
"lifecycleNotificationUrl":null,
"expirationDateTime":"2022-05-01T09:35:17.779Z",
"creatorId":"0a89b663-30dc-4ac0-b33b-0c36b6c3e699",
"includeResourceData":null,
"latestSupportedTlsVersion":"v1_2",
"encryptionCertificate":null,
"encryptionCertificateId":null,
"notificationUrlAppId":null
}

microsoft-graph-notificationsmicrosoft-graph-contacts
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.

1 Answer

Sheena-MSFT avatar image
0 Votes"
Sheena-MSFT answered PublicAccount-5217 commented

Hi @PublicAccount-5217,

You can check the lifecycleUrl concepts, this is to help applications awareness on missed notifications exist, so an application can resync, only upon detection of missed ones, and not by polling delta queries which would make the solution not scalable.

You can use the below link to get more details on lifecycle notifications.

Reduce missing subscriptions and change notifications - Microsoft Graph | Microsoft Docs. This mechanism requires that you expose a separate webhook to process notifications of type “lifecycle”. In case a service missed a notification for your subscribed-to resource, you will be notified with a “missed” notification. This notification will not include the ID of the missed item; hence your application will need to resynchronize this resource.

As it is not feasible to resynchronize a resource from scratch every time a notification misses, it is recommended that you also implement delta change tracking alongside change notifications. This is documented as a best practice here: Best practices for working with Microsoft Graph - Microsoft Graph | Microsoft Docs


Please also read this blog to get more Insights on how lifecycle Notifications can be useful.

If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.



· 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.

I know the lifecycle of notifications, and you can see that I had register the webhook successful, but when I try to create/update/delete the contacts in defalut folder, I didn't reveice the notification back even when I register the notification just now. (There is no firewall between my PC and MS cloud as I can receivce the validation and return it back)

Is there any limitation that I use too many times to test? or something else which blocked the notification? It blocked me almost one weeks

0 Votes 0 ·