I have a Sharepoint with multiple drives that contains an Excel file (xlsx) of which I'd like to return some data.
I have successfully found the Excel file through lists with a GET: https://graph.microsoft.com/beta/sites/COMPANY.sharepoint.com:/teams/TEAM:/lists/LONGID/items/LONGID/
Which leads to the Excel file. If I try to start a session by POSTing to excelfile/workbook/createSession with { "persistChanges": false } as body, I get a "Resource not found for the segment 'workbook'" error.
Thinking it was because I was working with a listitem, I have been trying to find the file through the drive afterwards but any which way, I can not access any drives.
https://graph.microsoft.com/beta/sites/COMPANY.sharepoint.com:/teams/TEAM:/drives
Above link returns all the drives. Accessing a drive by going to
- drives/LONGID/root
- drives/LONGID/root/children
- drives/LONGID/items
- drive/LONGID/root
- drive/LONGID/root/children
- drive/LONGID/items
returns a "Url specified is invalid". It's the same for accessing files in the default drive.
Any help would be appreciated!