Refresh a Range
A 3-step recipe with Google Sheets. We can help you get access.
Recipe · 3 steps
Refresh a Range
with Google Sheets
Snapshot, clear, and rewrite the values of a single range.
- Read the current values of the range so the caller has a before snapshot.
- Clear the range so the subsequent write starts from a clean range.
- Write the fresh block of values into the now-cleared range.
What you'll need to have ready
- accessToken: OAuth 2.0 bearer access token with the spreadsheets scope.
- spreadsheetId: The ID of the spreadsheet to refresh.
- range: The A1 notation range to snapshot, clear, and rewrite.
- values: A two-dimensional array of fresh cell values to write.
For your developer
Arazzo workflow google-sheets:refresh-range, 3 operations: getValues → clearValues → updateValues. Specs on APIs.io.