msgraph-sdk-python
msgraph-sdk-python copied to clipboard
WorkbookTableColumn doesn't accept "values"
Describe the bug
Using same syntax than in this code snippet from documentation gives error: "TypeError: WorkbookTableColumn.init() got an unexpected keyword argument 'values'"
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.workbook_table_column import WorkbookTableColumn
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = WorkbookTableColumn(
id = "99",
name = "name-value",
index = 99,
values = "values-value",
)
result = await graph_client.drives.by_drive_id('drive-id').items.by_drive_item_id('driveItem-id').workbook.tables.by_workbook_table_id('workbookTable-id').columns.post(request_body)
I can run the code without "values".
Expected behavior
I want to add also values similar to what I can via Graph Expoler.
How to reproduce
Try to add column to Excel with values.
SDK Version
1.7.0
Latest version known to work for scenario above?
No response
Known Workarounds
Using Graph Explorer
Debug output
Click to expand log
```request_body = WorkbookTableColumn(
TypeError: WorkbookTableColumn.init() got an unexpected keyword argument 'values'
</details>
### Configuration
WSL
### Other information
_No response_