Skip to content

[FEATURE] - Upgrade Notion "Create Page in Data Source" Action to Support Templates #18869

@TomFrankly

Description

@TomFrankly

The Notion API now supports applying page templates when creating pages within data sources: https://developers.notion.com/docs/creating-pages-from-templates

It'd be fantastic if Pipedream users could use this ability and apply templates when creating new pages within the Create Page from Data Source action.

This action already uses my notion-helper library, and I have just updated the library to provide robust methods for handling template application. I've also written a usage guide for working with templates.

Ideally, the action would be updated to surface a Template property if the chosen data source has any templates. Additionally, if the data source has a default template, the property would surface a "Default" option.

(Note how my guide provides an example for checking for the presence of a default template before creating a page. It's always a good idea to check before each page-creation request, as a data source might no longer have a default template set in the future).

Once a user has selected a template, the updated action can use a verifyTemplateReady() callback in createPage() to verify that a page has fully applied the template before applying any child blocks.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesttriagedFor maintainers: This issue has been triaged by a Pipedream employee

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions