Excel UsedRange (WORKS on Graph Explorer, and code is given by the Explorer)

Offen
#1,562 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@rkodev arbeitet bereits daran.

Seit 08.8.2024.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

bug: documentation type:bug
Is your feature request related to a problem? Please describe the problem.

When trying to Get values from a UsedRange on an shared Excel.

Graph Explorer provides the following example:

<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Drives\Item\Items\Item\Workbook\Worksheets\Item\UsedRange\UsedRangeRequestBuilderGetRequestConfiguration;


$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);

$requestConfiguration = new UsedRangeRequestBuilderGetRequestConfiguration();
$queryParameters = UsedRangeRequestBuilderGetRequestConfiguration::createQueryParameters();
$queryParameters->select = ["text"];
$requestConfiguration->queryParameters = $queryParameters;


$result = $graphServiceClient->drives()->byDriveId('drive-id')->items()->byDriveItemId('driveItem-id')->workbook()->worksheets()->byWorkbookWorksheetId('workbookWorksheet-id')->usedRange()->get($requestConfiguration)->wait();

This works on the graph explorer and you get the calculated field values, instead of the data without formulas applied.

However $queryParameters = UsedRangeRequestBuilderGetRequestConfiguration::createQueryParameters(); method does not exist.

Describe the solution you'd like.

Method added to the existing Code

Additional context?

No response

Vorherrschende Sprache
PHP
Sterne
669
Forks
149
Ø Merge
1 T. 4 Std.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoftgraph/msgraph-sdk-php

Alle Issues in microsoftgraph/msgraph-sdk-php

Ähnliche Issues

Weitere Issues zu PHP

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.