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

オープン
#1,562 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@rkodev がすでに取り組んでいます。

2024年8月8日 から。

評価

この issue はまだ評価されていません。

説明

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

主要言語
PHP
スター
669
フォーク
149
平均マージ
1日 4時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoftgraph/msgraph-sdk-php のほかの issue

microsoftgraph/msgraph-sdk-php の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。