使用 Graph API 中的 Sharepoint Online Excel 个文件

Working with Sharepoint Online Excel files in Graph API

根据 的提示,我已经走得很远了,但现在我被困住了,希望能得到一些帮助。

我想从 Power Automate 流程调用 Graph API Excel 端点,首先我在 Graph Explorer 中测试东西但不能超出一个点。

什么有效(并确认文件的“mimeType”是“application/vnd.openxmlformats-officedocument.spreadsheetml.sheet”):

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

但是当我尝试这样做时:

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

...它产生错误:

{
"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"
    }
}

有什么建议吗?

谢谢! P

你能在端点以下试一试吗?

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

下面是我的测试: