capabilities.work

Export a Database Record with Its Content

A 3-step recipe with Notion. We can help you get access.

Recipe · 3 steps

Export a Database Record with Its Content

with Notion

Read a database schema, query its first record, and export that record's content blocks.

  1. Retrieve the database to capture its property schema for the export.
  2. Query the database for its first record, sorted by creation time, and capture that record's page ID.
  3. Retrieve the child blocks of the record's page by passing the page ID as the block ID, capturing the record's content.
What you'll need to have ready
  • token: Notion integration token passed as a bearer credential.
  • notionVersion: The Notion API version date sent in the Notion-Version header.
  • databaseId: The ID of the database to export a record from.
For your developer

Arazzo workflow notion:database-record-export, 3 operations: retrieveDatabase → queryDatabase → retrieveBlockChildren. Specs on APIs.io.