Skip to main content

gsheets.googlesheets.onnewrows

Home > @runlightyear/gsheets > GoogleSheets > onNewRows

GoogleSheets.onNewRows() method

This API is in beta and may contain contain bugs. Can be used in production with caution.

On new rows in a spreadsheet.

Signature:
static onNewRows(props: OnNewRowsProps): string;

Parameters

ParameterTypeDescription
propsOnNewRowsProps
Returns:

string

Example

On new rows

import { GoogleSheets } from "@runlightyear/gsheets";

GoogleSheets.onNewRows({
name: "onNewRows",
title: "On New Rows",
apps: ["gsheets"],
pollingFrequency: 1,
run: async ({ data }) => {
console.log("Data: ", data);
},
});