-
Notifications
You must be signed in to change notification settings - Fork 252
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
SDK issue getting/updating values of named ranges #2499
Comments
There are more issues related to workbook API: https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues?q=is%3Aopen+is%3Aissue+workbook Not supported, but they are working on it. |
Hi @MartinM85, Where does it state that the SDK doesn't support the workbook APIs? As the SDK is generated by the Kiota tooling, I just think the SDK is very broke in this area, specifically the deserialization from responses. My answer in this thread might help |
this seems like a major issue. is the plan to just drop the workbook api entirely? i'm surprised that this isn't higher priority. |
To be honest @gotmike I think if you look at the amount of issues being reported by people for the SDK for V5.x I think the whole project has an issue, especially around support (or lack of). And as the whole SDK is reliant on tooling (don't get me started on that), it means issues in the SDK tend to be due the tooling that generates it. So the turnaround time for these issues seems to be very slow. |
The Graph API itself is huge and there is a lack of people that can maintain SDKs. It's fulltime job and even if the community can help, we don't have enough time for it. There are lot of issues related to support workbook api, I can't find them all. The initial issue is here: microsoft/OpenAPI.NET.OData#511 |
@gotmike Try the latest version of SDK. The result of |
Closing as this is resolved in latest version of the SDK. |
Describe the bug
i am trying to update the value of named ranges in excel using the microsoft graph api, but i don't seem to be able to pass the value the same way i can with the microsoft graph explorer.
to debug, i started with simply GETting the data that's in the cell. this url will work through the graph explorer...
https://graph.microsoft.com/v1.0/me/drive/items/ITEM_ID/workbook/names/TESTNAMEDRANGE/range
and it returns a response like this...
so then i tried to update using the same method, again through the graph explorer. using this url...
https://graph.microsoft.com/v1.0/me/drive/items/ITEM_ID/workbook/names/TESTNAMEDRANGE/range
and i use this json body...
this also works, with the following response...
so i concluded that the API does "work" using this method.
now i try in code, using the c# SDK. in the version 4.x SDK, this would work...
now i'm trying to update to v5.x and having trouble. even GETting the value of a named range isn't working for me.
i've got code that looks like this...
when this runs, the
GetAsync()
calls return data, pointing to the correct sheet/cell and such, but they do NOT include values.the
PatchAsync()
call also completes correctly and returns data, but does not update the value nor does it return a value.Expected behavior
i would expect it to both return and update the value that is in the cell.
How to reproduce
this full code snippet should work... of course you need to have a session and ids that exist in a test environment.
SDK Version
5.48
Latest version known to work for scenario above?
4.x
Known Workarounds
i don't have a workaround, although it does seem to work via the graph explorer
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: