How to send a file as a message to slack channel?

Describe the issue/error/question

I am trying to send a message with file attachment to a slack channel.

What is the error message (if any)?

When I use the slack (upload a file) node, I get an error “ERROR: options.channelIds.join is not a function”

Please share the workflow

Share the output returned by the last node

ERROR: options.channelIds.join is not a function

Hi @kp-kun-dip, ideally n8n would provide you with a list of available Slack channels provided your API token has permissions to retrieve them. Can you try refreshing your list like so?

If fetching the list fails, could you try using an expression of {{ ["C04RYE17SQ1"] }} to specify your channel ID? It seems this node expects an array of strings behind the scenes, and this expression would provide exactly that:

1 Like

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