【问题标题】:Working with Sharepoint Online Excel files in Graph API在 Graph API 中使用 Sharepoint Online Excel 文件
【发布时间】:2020-10-22 21:22:28
【问题描述】:

我在 Pulling Excel.xlsx workbook from Sharepoint site using Microsoft 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

【问题讨论】:

    标签: excel api sharepoint graph


    【解决方案1】:

    你能在端点下试一试吗?

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

    下面是我的测试:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-22
      • 2018-06-16
      • 1970-01-01
      • 2018-12-28
      • 2017-01-18
      • 2016-09-23
      相关资源
      最近更新 更多