Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Notion connection the step signs in with. |
| Page idRequired | text |
| Bring it back instead | Notion keeps a trashed page for 30 days, so a restore works inside that month. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `notion`) |
pageId | textits `{{ }}` must give a string |
restore | true/false, by default false |
Output
| Field | Type |
|---|---|
pageId | string |
inTrashIt is in the trash | boolean |
Sample output, and the expression for each field
- inTrashtrue
- pageId"1a2b3c4d"
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>",
"pageId": "<page id>",
"restore": false
},
"label": "Archive or restore page",
"type": "notion.archivePage",
"version": 1
}