Slack Channel Create Error - "missing agruments"

Describe the problem/error/question

I try to use Slack node to create new channel, from a list in a Google Sheet.
I use Slack Enterprise Grid if that’s important, my app installed on the right Workspace with all the OAuth permission needed. as If I ran it as a Python code the Slack channel created.

What is the error message (if any)?

Slack error response: “missing_argument”

Please share your workflow

Share the output returned by the last node

Slack error response: “missing_argument”

Information on your n8n setup

  • n8n version:1.98.2
  • Running n8n via :Docker on AWS EC2

1- Change the parameter
In the Slack Create Channel node, replace:

Before: channelId = {{$json.channel_names}}
After: name = {{$json.channel_names}}

This ensures that the API receives the desired name of the channel to be created.

2- Name Validation
Slack requires that the name meets certain rules:

Lowercase (a–z)
Digits, hyphens (-)

3- No spaces, uppercase, or special characters, as follows:
“name” must be lowercase, without spaces or dots

You can normalize the name in n8n using a Set or Code node before it, for example:

return [[
$json.channel_names.toLowerCase().replace(/[^a-z0-9-]/g, '-')
]];

Thanks for your reply @Erick_Torres
However I’ve found that when using Org Level API Slack Token you must provide the Workspace ID.
Reference to Slack API Documentation : conversations.create method | Slack

`team_id`

string

Optional : 

encoded team id to create the channel in, required if org token is used
1 Like