Microsoft Graph
2 TopicsIssue with OneDrive webhook subscription
Hello, I need help with the two issues I encountered using Microsoft Graph API, specifically related to OneDrive webhooks. Issue 1: I intend to use a webhook in OneDrive to receive notifications when files inside a specific folder are updated. However, we have encountered a limitation where it appears that webhook registration is only possible at the root of an enterprise OneDrive. See below the POST that works. If I try to change the resource to a different folder, it fails. POST /v1.0/subscriptions/ { "changeType": "updated", "notificationUrl": "[WEBHOOK_URL]", "resource": "/me/drive/root", "expirationDateTime": "2024-01-24T11:23:00.000Z", "clientState": "1234" } Issue 2: The second challenge is with the webhook notifications themselves. Currently, the notifications we receive do not specify which file was updated. See below the JSON our webhook receives when one file is updated. Notice that inside the "resourceData" the is a generic "DriveItem" without any ID. { "value":[ { "subscriptionId":"##############################", "clientState":"1234", "resource":"/me/drive/root", "tenantId":"##################################", "resourceData":{ "@odata.type":"#Microsoft.Graph.DriveItem" }, "subscriptionExpirationDateTime":"2024-01-24T11:23:00+00:00", "changeType":"updated" } ] } Obs.: All my tests are being done using Graph Explorer. Any helps would be greatly appreciated, Vinicius Paiva605Views0likes1CommentIssue with OneDrive File Picker v8
Hi, I'm following the https://github.com/OneDrive/samples/tree/master/samples/file-picking/javascript-basic-consumer) to try to integrate the File Picker into my application but I'm getting the following error in the popup: and the developer console for the window shows: plt.odsp-common.js:1 GraphError: ObjectHandle is Invalid at t.a (res-1.cdn.office.net/files/odsp-web-prod_2023-10-27.002/odcfilepickerwebpack.manifest/plt.odsp-common.js:1:286129) at t [as constructor] (res-1.cdn.office.net/files/odsp-web-prod_2023-10-27.002/odcfilepickerwebpack.manifest/plt.odsp-common.js:1:24023) at new t (res-1.cdn.office.net/files/odsp-web-prod_2023-10-27.002/odcfilepickerwebpack.manifest/plt.odsp-common.js:1:62054) at res-1.cdn.office.net/files/odsp-web-prod_2023-10-27.002/odcfilepickerwebpack.manifest/plt.odsp-common.js:1:249215 at e.then (res-1.cdn.office.net/files/odsp-web-prod_2023-10-27.002/odcfilepickerwebpack.manifest/plt.odsp-common.js:1:90280) at res-1.cdn.office.net/files/odsp-web-prod_2023-10-27.002/odcfilepickerwebpack.manifest/plt.odsp-common.js:1:248860 at Object.A [as _notify] (res-1.cdn.office.net/files/odsp-web-prod_2023-10-27.002/odcfilepickerwebpack.manifest/plt.odsp-common.js:1:86424) at Object.enter (res-1.cdn.office.net/files/odsp-web-prod_2023-10-27.002/odcfilepickerwebpack.manifest/plt.odsp-common.js:1:88881) at e._run (res-1.cdn.office.net/files/odsp-web-prod_2023-10-27.002/odcfilepickerwebpack.manifest/plt.odsp-common.js:1:94087) at e._error (res-1.cdn.office.net/files/odsp-web-prod_2023-10-27.002/odcfilepickerwebpack.manifest/plt.odsp-common.js:1:93595) I've followed all the setup steps in the https://github.com/OneDrive/samples/tree/master/samples/file-picking/javascript-basic-consumer#readme but the error still persists. I know the sample code provided works as it was running previously and this issue showed up only as I was revisiting it recently. I would appreciate if anyone could provide some help for this!951Views0likes0Comments