Using Python to connect to READ, ADD, UPDATE, DELETE from Smartsheet
Dear Colleagues,
I definitely need your help.
I am using the example https://github.com/smartsheet-samples/python-read-write-sheet/blob/master/python-read-write-sheet.py to connect to Smartsheet, but the end is always a new Sheet ID with the data I retrieved from Excel.
What I want to do:
Connect to a specific Sheet ID;
Retrieve rows, columns, cells as needed (READ);
ADD, UPDATE, DELETE cells, columns, rows to a specific Sheet ID.
I have tried my best to try to make it work. I just can't. Can you please help? It is really important for a project I am working on.
Thanks in advance for all your help.
Kind Regards,
Fabio Ottolini
Answers
-
Hi @FOttolini
It sounds like you're using the API to Import a sheet, which will always create a new sheet, as you've found (see the UI explanation, here: Import Files to Create New Sheets)
Instead you'll want to use Get Sheet to retrieve information, and then use one of the Update commands for when you want to update that specific sheet.
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now -
Thanks a lot! Very useful indeed. The problem with the example I have sent is that as an inexperienced Smartsheet user, it seems there is something obscure going on. Again, thank you!
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.1K Get Help
- 348 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 455 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 282 Events
- 36 Webinars
- 7.3K Forum Archives