简体   繁体   English

在 Graph API 中使用 Sharepoint Online Excel 文件

[英]Working with Sharepoint Online Excel files in Graph API

I got quite far following the hints from Pulling Excel.xlsx workbook from Sharepoint site using Microsoft Graph API but now I am stuck and would appreciate some help.我按照使用 Microsoft Graph API 从 Sharepoint 站点拉取 Excel.xlsx 工作簿的提示走得很远,但现在我被卡住了,希望得到一些帮助。

I want to call the Graph API Excel endpoint from a Power Automate flow and first I am testing things in the Graph Explorer but cannot get beyond a point.我想从 Power Automate 流程调用 Graph API Excel 端点,首先我在 Graph Explorer 中测试内容,但不能超出一点。

What works (and confirms that the file's "mimeType" is "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"):什么工作(并确认文件的“mimeType”是“application/vnd.openxmlformats-officedocument.spreadsheetml.sheet”):

https://graph.microsoft.com/v1.0/sites/<tenantid>.sharepoint.com:/sites/<siteid>:/lists/<listid>/items/19/driveitem

But when I try this:但是当我尝试这个时:

https://graph.microsoft.com/v1.0/sites/<tenantid>.sharepoint.com:/sites/<siteid>:/lists/<listid>/items/19/driveitem/workbook

... it generates error: ...它产生错误:

{
"error": {
    "code": "-1, Microsoft.SharePoint.Client.InvalidClientQueryException",
    "message": "The parameter name path is not valid.",
    "innerError": {
        "date": "2020-10-22T08:04:16",
        "request-id": "aad38960-538d-4a5b-b3c6-097d19f07b09",
        "client-request-id": "a029dea8-f9f9-9a04-d4a3-7901be8d1eca"
    }
}

Any suggestion?有什么建议吗?

Thanks!谢谢! P

Can you please have a try below endpoint?你可以试试下面的端点吗?

https://graph.microsoft.com/v1.0/sites/<siteid>/lists/<listid>/items/8253/driveitem/workbook/worksheets

Below is my test:下面是我的测试:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SharePoint 2010:使用Excel文件 - SharePoint 2010: working with Excel files 使用Graph API通过SharePoint访问Excel返回无效的URL错误 - Accessing Excel over SharePoint with Graph API returns invalid URL error 如何在Sharepoint Framework(SPFx)应用程序中使用Excel Rest API访问存储在Sharepoint联机文档库中的Excel数据? - How to access Excel Data stored in Sharepoint Online Document Library using Excel Rest API in a Sharepoint Framework (SPFx) app? 如何使用工作或学校帐户在 Python 中阅读 SharePoint Online (Office365) Excel 文件? - How to read SharePoint Online (Office365) Excel files in Python with Work or School Account? 如何使用工作或学校帐户将 SharePoint Online (Office365) Excel 文件读取到 Python 特别是 pandas? - How to read SharePoint Online (Office365) Excel files into Python specifically pandas with Work or School Account? excel online 中的超链接不起作用 - Hyperlinks in excel online not working 如何将Excel图表导出到sharepoint - how to export an Excel graph to sharepoint Excel VLOOKUP,sharepoint 中的文件 - Excel VLOOKUP, files in sharepoint Sharepoint 上的 Excel 文件 - Excel Files on Sharepoint 在Sharepoint Online上安排刷新PowerPivot Excel - Schedule refresh PowerPivot excel on Sharepoint Online
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM