FlowmageDocs

Add comment

BetaChanges data

Leaves a comment on a Notion page or in an existing discussion.

Settings

SettingWhat it is
ConnectionRequiredThe integration needs the Insert comments capability for this — set it in Notion under the integration's Capabilities.
Comment on"page" or "discussion"
Page idtext
Discussion idThe List comments node answers a discussion id per thread.
CommentRequiredtext
Show it asA name of your own beside the comment. Leave it empty for the integration's.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `notion`)
target"page" or "discussion", by default "page"
pageIdtextits `{{ }}` must give a string; used when `target` is "page"
discussionIdtextits `{{ }}` must give a string; used when `target` is "discussion"
texttext
displayNametextits `{{ }}` must give a string

Output

FieldType
commentIdstring
discussionIdstring
commentobject
Sample output, and the expression for each field
  • comment
    • object"comment"
  • commentId"cm0001"
  • discussionId"d0001"

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>",
    "discussionId": "",
    "displayName": "",
    "pageId": "",
    "target": "page",
    "text": "<comment>"
  },
  "label": "Add comment",
  "type": "notion.createComment",
  "version": 1
}