Procedures

Automation procedures in the Notion book.

The following documentation is for Notion v1.2.2 (BDK).

to create a (new page) in notion

Create a new page in Notion, following the BDK NotionPage model as an input.

Input Concepts

Concept
Description
Type
Required
Default Value

The new page to be created.

notion page

Yes

(no default)

Output Concepts

Concept
Description
Type

None

notion page

Examples

Create a new minimal page in Notion

create a json
use the above as the parent
the  parent's page_id is "1de281a74b61808fbf0ce51553cb9ed2"
get '{"title": [{"text": {"content": "Minimal Page"}}]}' as a json
use the above as the properties body
get '[{"object":"block","type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"This is a simple paragraph."}}]}}]' as json
use the above as the blocks
the blocks
create a json
use the above as the page
the page's parent is the parent
the page's "properties" is the properties body
set the page's "children" to the blocks
the page
use the page as the new page
create the new page in notion

to query some (pages) from notion

FILTER - CAPABLE

Retrieves pages from Notion.

It will return a list of NotionPage objects, that are BDK representations of the Notion Page model.

Input Concepts

Concept
Description
Type
Required
Default Value

query text

The text to search for in the title of the pages.

text

No

(no default)

Output Concepts

Concept
Description
Type

Notion Pages

notion page

Examples

Query pages from notion Query pages from notion with a query text the query text is "BDK Test Page"

query some pages from notion
query some pages from notion

Last updated

Was this helpful?