Issue with adding a row to workbook table in python using MSGraph API #2548
dennistran314
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have been trying to use the MS Graph API to add and update rows in an excel file on Sharepoint using MSGraph API. The problem, however, is that I receive the error
AttributeError: 'list' object has no attribute 'serialize'
Eventhough I followed the instructions on https://learn.microsoft.com/en-us/graph/api/table-post-rows?view=graph-rest-1.0&tabs=python
The issue seems to lie in how I defined the values in the request body as it is a list that cannot be serialized. I have tried to make it into a dictionary and a json format using json.dumps() but that didnt work either. My code is as follows:
If anyone could help me, I would appreciate it :)
Beta Was this translation helpful? Give feedback.
All reactions