Microsoft Graph API Webhook Sending Created & Updated Event Types Always
I've attached my Salesforce application to a Microsoft Graph webhook. First I've attached to both created and update in one webhook. After I create an event in Outlook I receive 2 separate notifications. One is 'updated' and the other is 'created' type. I thought this was occurring because I'm subscribing to 1 notification with 2 different types (which shouldn't be the case) but afterwards I've subsribed only for updated, and I'm receiving an 'updated' notification status when I create an event in outlook. What can I do for this?
Microsoft Graph
-
Sourabh Gupta 800 Reputation points • Microsoft Vendor
2024-03-02T13:38:35.6733333+00:00 Hi Aleksa Markovic,
Could you please send me the resource for which you have created the subscription.
It would be better if you can share the while subscription object like the sample below
{
"changeType": "created",
"notificationUrl": "https://webhook.azurewebsites.net/api/send/myNotifyClient",
"resource": "me/mailFolders('Inbox')/messages",
"expirationDateTime":"2016-11-20T18:23:45.9356913Z",
"clientState": "secretClientValue", "latestSupportedTlsVersion": "v1_2"
}
-
Aleksa Markovic 0 Reputation points
2024-03-04T08:27:02.1433333+00:00 Yes, sure.
Here it is:{ "changeType": "created", "notificationUrl": [myPublicEndpoint], "resource": "/me/todo/lists/[listId]/tasks", "expirationDateTime": "2024-03-03T14:35:00.0000000Z", "clientState": "SecretClientState", "includeResourceData":false }
-
Aleksa Markovic 0 Reputation points
2024-03-04T08:27:38.4266667+00:00 I also have an updated one which is connected to a different endpoint.
-
Sourabh Gupta 800 Reputation points • Microsoft Vendor
2024-03-04T16:02:45.4966667+00:00 Another quick question, do you recieve two notifications for the created one as well? or its for updated one only ?
-
Aleksa Markovic 0 Reputation points
2024-03-04T17:41:51.2133333+00:00 Yep, for the created one. I think today I got only 1 updated changeType received for an update, which is correct. But it wasn't like that the day before. But when I create an event/task, I receive both of them in my app via the webhook.
-
Aleksa Markovic 0 Reputation points
2024-03-04T17:43:52.6466667+00:00 I've also found another problem which further blocks our work and it's with the lifecycleUrl not being triggered at all, therefore not allowing me to extend my subscriptions. I have implemented the logic and followed the documentation, but that endpoint simply doesn't get called.
I know this is a completely different question, just wanted to point out another problem with the webhook that I found, it might be helpful or someone else could take it.
https://learn.microsoft.com/en-us/answers/questions/1605375/not-receiving-any-request-towards-my-lifecyclenoti -
Aleksa Markovic 0 Reputation points
2024-03-06T14:27:09.8433333+00:00 Hello Gupta, do you have any updates maybe?
-
Sourabh Gupta 800 Reputation points • Microsoft Vendor
2024-03-07T03:54:11.51+00:00 Hi Aleksa , I have already looking into the other question posted , I will get back to you once, I have some answer.
-
Aleksa Markovic 0 Reputation points
2024-03-08T09:46:10.0866667+00:00 Thank you Gupta.
I will wait for your response. -
Sourabh Gupta 800 Reputation points • Microsoft Vendor
2024-03-09T09:54:56.1433333+00:00 Hi Aleksa, could you please open a support ticket with microsoft for your issue. It seems to be specific to your tenant.
-
Aleksa Markovic 0 Reputation points
2024-03-09T18:17:48.1033333+00:00 Hello Gupta, can you please give me a link where I can do that? I think that I might not have the permissions for it with my user so someone else from the organization would need to do it. Are you talking about both of these problems? To be honest, I'm more worried about the lifecycleUrl not being triggered. That one is a more serious issue.
-
Aleksa Markovic 0 Reputation points
2024-03-12T08:17:22.9466667+00:00 Anything we can do for the lifecycle to be triggered? Seems like nothing is being sent to the endpoint before the subscription expires.
-
Aleksa Markovic 0 Reputation points
2024-03-20T08:18:00.4466667+00:00 Hello Gupta. Anything that can help me?
-
Sourabh Gupta 800 Reputation points • Microsoft Vendor
2024-03-24T11:06:08.02+00:00 Aleksa Markovic, I would suggest opening a ticket with microsoft. This can be done using the admin portal.
Sign in to comment