Pointers on Slack node and dynamic messages

Describe the problem/error/question

I’m trying to get my head a the parameters for a Slack node and could use some guidance!

Please share your workflow

Input JSON consists of >1 items, each containing a name field. I would like the node to send a Slack message that summarises how many items there are and lists the name of each one, in a similar format to::

X new entries detected:

  • name 1
  • name 2
  • name etc.

I’ve figured out the expression to calculate the input length, but I’m not sure how to run a loop that lists each name, or if this is possible within a single slack message.

Any help or pointers would be appreciated!

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

I was able to solve this by inserting an extra Code node before the Slack one, that allowed me to transform the data into a more appropriate structure that the Slack node would accommodate. It’s not perfect as doesn’t play nicely with Slack message blocks, but works for now!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.