auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
this.checkpoint = $checkpoint + 1 || 1;
// Write the new value of checkpoint back to $checkpoint for the next workflow run
$checkpoint = this.checkpoint;
The A1 notation of the values to update, including the sheet to update. For example: “Sheet1!A1:B2”
The array of new values to update the sheet with. Google Sheets requires an array of arrays here, representing the grid of values you'd like to update in your sheet (see the docs for more information).
The ID of the spreadsheet to retrieve data from (found in the URL at docs.google.com/spreadsheets/d/{id})
async
(params, auths) => {
}
const data = {
range: params.range,
values: params.values,
majorDimension: params.majorDimension,
}
const config = {
method: "put",
url: `https://sheets.googleapis.com/v4/spreadsheets/${params.spreadsheetId}/values/${params.range}`,
params: {
includeValuesInResponse: params.includeValuesInResponse,
responseDateTimeRenderOption: params.responseDateTimeRenderOption,
responseValueRenderOption: params.responseValueRenderOption,
valueInputOption: params.valueInputOption || 'USER_ENTERED',
},
headers: {
Authorization: `Bearer ${auths.google_sheets.oauth_access_token}`,
},
data,
}
return await require("@pipedreamhq/platform").axios(this, config)