microsoftgraph / microsoftgraph/msgraph-sdk-python
WorkbookTableColumn doesn't accept "values"
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 630
- Fork
- 96
- Merge medio
- 15h 20m
- PR unite (30g)
- 3
Descrizione
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_
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia individuando la definizione di WorkbookTableColumn utilizzata da Python SDK e confronta i campi accettati dal suo costruttore con lo snippet della documentazione per SDK version 1.7.0. Riproduci la richiesta con e senza valori, quindi verifica che sia possibile creare una colonna con valori come mostrato nell’issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100