无法使用 Microsoft Graph API REST 端点获取共享工作簿的工作表
Unable to get worksheets for shared workbooks using Microsoft Graph API REST endpoint
如何获取共享工作簿的工作表/workbook/worksheets。我能够获取个人工作簿的工作表,但无法获取共享工作簿的资源
终于成功了!
为了在 Office 365 中获取共享工作簿的工作集,需要使用以下端点
https://graph.microsoft.com/v1.0/drives/{remoteItem.parentReference.driveId}/items/{remoteItem.id}/workbook/worksheets
为了获得 {remoteItem.parentReference.driveId} 和 {remoteItem.id} 使用以下端点
感谢@Petaflop 建议检查所有范围。出于某种原因,您可以使用读取权限列出文件,但需要 Read.All 才能列出工作表。(@Petaflop 如果没有删除,会给您打勾:))
https://graph.microsoft.com/v1.0/me/drive/search(q='.xlsx')?select=name,id,parentReference
如何获取共享工作簿的工作表/workbook/worksheets。我能够获取个人工作簿的工作表,但无法获取共享工作簿的资源
终于成功了!
为了在 Office 365 中获取共享工作簿的工作集,需要使用以下端点
https://graph.microsoft.com/v1.0/drives/{remoteItem.parentReference.driveId}/items/{remoteItem.id}/workbook/worksheets
为了获得 {remoteItem.parentReference.driveId} 和 {remoteItem.id} 使用以下端点
感谢@Petaflop 建议检查所有范围。出于某种原因,您可以使用读取权限列出文件,但需要 Read.All 才能列出工作表。(@Petaflop 如果没有删除,会给您打勾:))
https://graph.microsoft.com/v1.0/me/drive/search(q='.xlsx')?select=name,id,parentReference