Forum Discussion

jknsmc's avatar
jknsmc
Copper Contributor
Aug 07, 2024

MSGraph Subscription notification missing resource id

Hello all,

 

We are making use of MS Graph to create a subscription on a sharepoint site on drive (root) level (also the same tried for list level). This works fine and we receive notifications.

 

According to this page, for basic notifications, the id of the changed resource should come back in resourceData.

 

The resourceData property is in the body of the notification, but we only get the @odata.type property inside and nothing more.

 

Can anyone please explain what is wrong / what we are missing / how it should work?

Thanks!

2 Replies

  • Maik1234567's avatar
    Maik1234567
    Copper Contributor

    I am having the same issue. Here's an event for an document update in a sharepoint list: 

    {
    
        "subscriptionId": "id-xxx",
    
        "clientState": "secretClientValue",
    
        "resource": "/sites/id-xxx/lists/id-xxxx",
    
        "tenantId": "58a1af86-2bd1-4b4d-a46e-7fcefa137ed1",
    
        "resourceData": {
    
            "@odata.type": "#Microsoft.Graph.ListItem"
    
        },
    
        "subscriptionExpirationDateTime": "2025-01-10T09:01:46\u002B00:00",
    
        "changeType": "updated"
    
    }

    I am grateful for any support ;-)

  • gabe1745's avatar
    gabe1745
    Copper Contributor

    jknsmc 

    I am having the same issue. Here's an event for an updated drive item:

    {
      "value": [
        {
          "changeType": "updated",
          "clientState": null,
          "resource": "me/drive/root",
          "resourceData": {
            "@odata.type": "#Microsoft.Graph.DriveItem"
          },
          "subscriptionExpirationDateTime": "2024-10-08T15:43:57.69+00:00",
          "subscriptionId": "redacted",
          "tenantId": "redacted"
        }
      ]
    }

Resources