Is there a way to create a (Excel workbook) File using Microsoft Graph API, but not by uploading

我的梦境 提交于 2020-07-19 18:46:25

问题


I want to do something like

https://graph.microsoft.com/v1.0/me/drive/items/workbook/add

or similar which will create a new workbook identical to what the New -> Workbook menu does in the OneDrive Web interface.

I can't create the file locally so upload is not an option.


回答1:


The Microsoft Graph APIs only allow reading and modifying workbooks that already exist at this time.

I realize that your question stated you were not able to create the file locally. However, a library like js-xlsx has the ability to create workbooks in-memory that you could then push up into OneDrive using the Graph APIs. You could use a library like that to create a blank workbook, push it, then manipulate it using the Graph APIs.



来源:https://stackoverflow.com/questions/38896911/is-there-a-way-to-create-a-excel-workbook-file-using-microsoft-graph-api-but

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!