Force Save/Update a Sheet via API
I am using REST API to automatically update/format cells based on the results of an Azure DevOps query. I am stepping through each value in the query and either inserting the value or appending it to the existing values in the cell. However, the sheet does not save after each value is updated, so I am constantly overwriting the values as when I attempt to GET the value of a cell I just authored, it is returning as null. Is there a way to force save/update after each PUT request so that my next GET returns the new values?
Answers
-
So it should save after each update.
The way that I normally do this is to gather all of the changes first. This means taking the data from the sheet and the data from your query result and building the cell updates. Then you can perform a single update (or I usually do them 2-300 at a time. This will decrease the load on the API since you are not making so many small updates and should overall improve the process.
Hope this helps!
Ryan
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives