Using graph explorer, I want to get data from Excel file from SharePoint site
From Onedrive (for business) this works: graph.microsoft.com/beta/me/drive/root:/Map1.xlsx:/workbook/worksheets
From SharePoint site doesn't: graph.microsoft.com/beta/sharepoint:/MyFabulousSite/MyDocLib/Map1.xlsx:/Workbook/worksheets Response:
Status Code: 400
{
"error": {
"code": "BadRequest",
"message": "Resource not found for the segment 'Workbook'.",
"innerError": {
"request-id": "160a545b-66b8-44fc-92b7-f2b327824b84",
"date": "2017-01-25T16:20:02"
}
}
}
Tried this as well, didn't work either: graph.microsoft.com/beta/sharePoint/sites/ce33044e-6360-4630-9c5f-afad46f88333,cb1e4d7e-24be-433c-a874-12551cdd3348/drives/b!TBQzzmBjMEacX6-tRviDM3FNHsu-JxxDqHQSVRzdM0hfFOUPQwasQb407ORQaT2q/root:/Map1.xlsx:/workbook/worksheets Response:
Status Code: 500
{
"error": {
"code": "-1, Microsoft.SharePoint.Client.UnknownError",
"message": "Onbekende fout",
"innerError": {
"request-id": "cec7663e-b708-4887-8d82-87d59fb15a2b",
"date": "2017-01-25T16:16:58"
}
}
}
Guess I'm closer using the last request, but still can't figure out the details.
Update:
Moving my Excel file to the root site in the default library, I'm able to request the worksheets using the following url: graph.microsoft.com/beta/sharePoint/site/drive/root:/Test.xlsx:/workbook/worksheets
/workbook/...
segments out) on the non-root sites? – Sudhi Ramamurthy