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
Parameter | Type | Description |
---|---|---|
props | OnNewRowsProps |
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);
},
});