Support Excel Workbook Table Add TableRowCollection
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia dal punto di ingresso generato AddPostRequestBody::setValues() nel percorso Drives/Workbook/Tables/Rows/Add e confronta l’implementazione PHP con l’issue collegata del .NET SDK e il branch dev. Verifica l’esempio documentato tablerowcollection-add e il comportamento risultante della richiesta; il lavoro è completato quando l’aggiunta di righe alle tabelle Excel funziona senza gli errori di tipo o OData segnalati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- PHP
- Stelle
- 669
- Fork
- 149
- Merge medio
- 1g 4h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoftgraph/msgraph-sdk-php
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
microsoftgraph/msgraph-sdk-php#1794 · 2 commenti ·
-
bug: metadata type:bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
microsoftgraph/msgraph-sdk-php#1739 · 6 commenti ·
-
status:waiting-for-triage type:bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
microsoftgraph/msgraph-sdk-php#1643 · 8 commenti · 4 reazioni ·
-
status:waiting-for-triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
microsoftgraph/msgraph-sdk-php#1800 · 3 reazioni ·
-
NowAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 1/100
microsoftgraph/msgraph-sdk-php#1799 ·
Tutte le issue di microsoftgraph/msgraph-sdk-php
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
matomo-org/plugin-CustomAlerts#310 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug Status: Needs Triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
php/web-php#2102 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
domain/checkout Platform(Default) priority/low testing/acceptance
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 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 failsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100