Skip to content

Utility

Log

Writes a message per item to the application log and passes the items on.

Inputs: main · Outputs: main

Parameter Type Description
Message
message
JSON What to write per item, e.g. Order {{ $json.id }} received; {{ $json }} writes the whole item. Supports expressions.
Level
level
one of: trace, debug, information, warning, error, critical, none How important the message is; the host decides which levels are kept.
trace: Very detailed, usually switched off.
debug: Details for finding errors.
information: Normal messages.
warning: Something unexpected that didn't stop the run.
error: Something failed.
critical: Something failed badly.
none: Write nothing; the items just pass.
Default: information.
Example: Write a line per order

The log gets 'Order 17 received'; the items pass unchanged.

Parameters:

{
  "message": "Order {{ $json.id }} received",
  "level": "information"
}

Input:

[
  {
    "id": 17
  }
]

Output:

[
  {
    "id": 17
  }
]

No Operation

Passes items through unchanged.

Inputs: main · Outputs: main

This node has no parameters.

Example: Pass the items on

Useful as a placeholder or as a point where several branches meet.

Input:

[
  {
    "id": 1
  },
  {
    "id": 2
  }
]

Output:

[
  {
    "id": 1
  },
  {
    "id": 2
  }
]

Result

Defines what a user sees in the portal at the end of the run: text, Markdown or a table. Without a Result node the portal shows only the status. Outputs one item with the result, so place it at the end of the workflow.

Inputs: main · Outputs: main

Parameter Type Description
Kind
kind
one of: text, markdown, table What the portal user sees.
text: A plain message, e.g. Done: 17 rows.
markdown: Formatted text with headings, lists and links.
table: The incoming items, one row per item.
Default: text.
Title
title
text Heading above the result, e.g. Import finished. Supports expressions.
Content
content
text The message, e.g. Done: {{ $json.count }} rows; evaluated for the first incoming item. Only when Kind is text or markdown. Supports expressions.
Error message
errorMessage
text Shown to the portal user when the run fails. Without it the user sees a general message and the number of the run; details of errors stay with the admins. Supports expressions.
Example: A message for the portal user

The output item describes what the portal shows; put the node at the end of the workflow.

Parameters:

{
  "kind": "text",
  "title": "Import finished",
  "content": "{{ $json.count }} orders imported"
}

Input:

[
  {
    "count": 17
  }
]

Output:

[
  {
    "kind": "text",
    "title": "Import finished",
    "text": "17 orders imported"
  }
]
Example: The items as a table

Parameters:

{
  "kind": "table",
  "title": "Open invoices"
}

Input:

[
  {
    "invoice": "R-17",
    "amount": 120
  },
  {
    "invoice": "R-18",
    "amount": 80
  }
]

Output:

[
  {
    "kind": "table",
    "title": "Open invoices",
    "columns": [
      "invoice",
      "amount"
    ],
    "rows": [
      [
        "R-17",
        "120"
      ],
      [
        "R-18",
        "80"
      ]
    ]
  }
]