ToolJet can connect to your Slack workspace to send messages.
To add the Slack datasource, click the Datasource manager icon on the left-sidebar of the app builder and click on the
Add datasourcebutton, then select Slack from the modal that pops up.
In the next dialog, you'll be asked to choose the permission scope. Choose the permission scope and then click on Connect to Slack button.
A new tab will open up asking for authorization confirmation. Once done, you can close the tab.
- Click on the 'Save data source button to save the data source.
The App (which credentials are provided) needs to be installed in the workspace to use the Slack data source, and it needs to be added to the channel where you want to post the message.
- List members
- Send message
- List messages from a channel
This operation will return the data of all the members in your slack workspace.
This operation will send/post the message to a specified channel or posting to direct messages (also known as DMs or IMs) in your slack workspace.
|Channel||The channel ID or user ID to post the message to.|
|Message||The message to post.|
This operation will get the messages from a specified channel.
|Channel||The channel ID to get the messages from|
|Limit||The maximum number of messages to return.|
|Next Cursor||A cursor value returned by a previous call to list messages.|