Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to retrieve JSON values from response #2502

Closed
craig-blowfield opened this issue May 20, 2024 · 0 comments
Closed

Unable to retrieve JSON values from response #2502

craig-blowfield opened this issue May 20, 2024 · 0 comments
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience

Comments

@craig-blowfield
Copy link

craig-blowfield commented May 20, 2024

Describe the bug

I am trying to retrieve a workbooks range values but the response object values are empty.

The response (WorkbookRange) contains the basic details of the range such as address and row count, but I can't get the values out.

I am not actually sure how you are meant to retrieve values from properties of type JSON? as I can't find any documentation on this other than some relating to Kiota.

Expected behavior

Returns the row/cell values for the given named range

How to reproduce

var scheduleInformationRange = await graphClient.Drives[workbookDriveItem.ParentReference.DriveId].Items[workbookDriveItem.Id].Workbook.Names["NAMED_RANGE"].Range.GetAsync();

var serializedJsonString = KiotaJsonSerializer.SerializeAsString(scheduleInformationRange.Text);

SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

The response for the request in graph API explorer looks something like this

``` json
   ...
   "hidden": null,
    "rowCount": 18,
    "rowIndex": 0,
    "valueTypes": [
        [
            "String",
            "String",
            "Empty",
            "Empty",
            "Empty",
            "Empty",
            "Empty",
            "Empty"
     ]
      ...
    ],
    "values": [
        [
            "Contract Name",
            "Some project",
            "",
            "",
            "",
            "Input required",
            "",
            ""
        ],
        [
            "Contract Folio Number",
       ...
@craig-blowfield craig-blowfield added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels May 20, 2024
@craig-blowfield craig-blowfield closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

1 participant