Support Excel Workbook Table Add TableRowCollection
还没有人认领这个 Issue。
评估
调研方向
从 Drives/Workbook/Tables/Rows/Add 路径下生成的 AddPostRequestBody::setValues() 入口点开始,并将 PHP 实现与链接的 .NET SDK issue 和 dev 分支进行比较。验证文档中的 tablerowcollection-add 示例以及由此产生的请求行为;完成标准是添加 Excel 表格行时不会出现报告中的类型或 OData 错误。
由索引模型根据 Issue 内容生成。
描述
Basically, same issue as described in the dotnet sdk, raising here to save others from wasting an entire day on this as I have.
https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1928
This issue exists in msgraph-sdk-php in dev branch.
The documentation is wrong as well for PHP at https://learn.microsoft.com/en-us/graph/api/tablerowcollection-add?view=graph-rest-1.0&tabs=php :
<?php
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new AddPostRequestBody();
$requestBody->setIndex(5);
$requestBody->setValues([ [1,2,3], [4,5,6], ]);
$result = $graphServiceClient->drives()->byDriveId('drive-id')->items()->byDriveItemId('driveItem-id')->workbook()->tables()->byWorkbookTableId('workbookTable-id')->rows()->add()->post($requestBody)->wait();
However, this will request in an error on the setValues() call saying it expects a Json object:
Fatal error: Uncaught TypeError: Microsoft\Graph\Generated\Drives\Item\Items\Item\Workbook\Tables\Item\Rows\Add\AddPostRequestBody::setValues(): Argument #1 ($value) must be of type ?Microsoft\Graph\Generated\Models\Json, array given,
Constructing a Json object using that class will instead result in an Odata error when making the actual request
Fatal error: Uncaught Microsoft\Graph\Generated\Models\ODataErrors\ODataError in vendor/microsoft/microsoft-graph/src/Generated/Models/ODataErrors/ODataError.php:36
Hoping this feature will get support added as well as hoping by surfacing this here others can find it in the search and know that adding table rows in Excel is not currently working with this SDK.
- 主要语言
- PHP
- 星标
- 669
- 派生
- 149
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoftgraph/msgraph-sdk-php 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
microsoftgraph/msgraph-sdk-php#1794 · 2 条评论 ·
-
bug: metadata type:bug
难度 1/5 1 小时以内 新手友好度 88/100
microsoftgraph/msgraph-sdk-php#1739 · 6 条评论 ·
-
status:waiting-for-triage type:bug
难度 1/5 1 小时以内 新手友好度 68/100
microsoftgraph/msgraph-sdk-php#1643 · 8 条评论 · 4 个 reaction ·
-
status:waiting-for-triage
难度 5/5 一周以上 新手友好度 35/100
microsoftgraph/msgraph-sdk-php#1800 · 3 个 reaction ·
-
Now未关闭
难度 5/5 一周以上 新手友好度 1/100
microsoftgraph/msgraph-sdk-php#1799 ·
查看 microsoftgraph/msgraph-sdk-php 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
matomo-org/plugin-CustomAlerts#310 ·
维护者通常 1 天内回复
-
Bug Status: Needs Triage
难度 1/5 1 小时以内 新手友好度 68/100
维护者通常 1 天内回复
-
domain/checkout Platform(Default) priority/low testing/acceptance
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
pluginsGLPI/addressing#132 ·
-
5.14.0 PIE packages still declare PHP >=8.3, so PIE installs them on PHP 8.3 and the build fails未关闭
难度 2/5 1-3 小时 新手友好度 66/100