Get database schema
BetaReads data
Reads which properties a Notion data source has, and of which kind.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Notion connection the step signs in with. |
| Data source idRequired | Not the database id. In Notion: open the database → ••• → Manage data sources → Copy data source ID. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `notion`) |
dataSourceId | texta value from the vendor's own list |
Output
| Field | Type |
|---|---|
dataSource | object |
properties | object |
propertyNames | array |
Sample output, and the expression for each field
- dataSource
- object"data_source"
- properties{}
- propertyNames
- [0]"Name"
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"connection": "<connection id>",
"dataSourceId": "<data source id>"
},
"label": "Get database schema",
"type": "notion.getDataSource",
"version": 1
}