Skip to main content

notion.notion.onnewdatabaseitems

Home > @runlightyear/notion > Notion > onNewDatabaseItems

Notion.onNewDatabaseItems() method

On New Database Items

Signature:
static onNewDatabaseItems(props: OnNewDatabaseItemsProps): string;

Parameters

ParameterTypeDescription
propsOnNewDatabaseItemsProps
Returns:

string

Example

On new database items

import { Notion } from "@runlightyear/notion";

Notion.onNewDatabaseItems({
name: "onNewDatabaseItems",
title: "On New Database Items",
pollingFrequency: 1,
run: async ({ data }) => {
console.log("New database items:", data);
},
});