question

ffbld01ukibmcom-1577 avatar image
0 Votes"
ffbld01ukibmcom-1577 asked saldana-msft edited

Is there any MS Graph API to create workbook in given path?

We tried creating an Excel file using the following API, and payload. But it generates the corrupted excel file with 0 size.

https://graph.microsoft.com/v1.0/me/drive/root/children

 {
   "name": "test2.xlsx",
   "file":{ }
 }

Request your help to get the right payload or API to create empty excel file in given onedrive path

sharepoint-devmicrosoft-graph-filesmicrosoft-graph-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JanardhanaVedham-MSFT avatar image
0 Votes"
JanardhanaVedham-MSFT answered

Hi @ffbld01ukibmcom-1577 ,

As mentioned in this documentation , currently Microsoft Graph Excel REST API only supports or allows to read and modify Excel workbooks (or Excel files) stored in OneDrive for Business, SharePoint site or Group drive.

197454-image.png

You can also go through this relevent question and answer in stack overflow as well.

Hope this helps.

If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have any further questions about this answer, please click "Comment.


image.png (47.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.