capabilities.work

Refresh a Range

A 3-step recipe with Google Sheets. We can help you get access.

Recipe · 3 steps

Refresh a Range

Snapshot, clear, and rewrite the values of a single range.

  1. Read the current values of the range so the caller has a before snapshot.
  2. Clear the range so the subsequent write starts from a clean range.
  3. 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.