What's in this article?
You can use the Slack pack to send messages directly from your Coda doc with the click of a button. This makes managing tasks and your team even easier. Before you begin, install the Slack pack to your Coda doc. Visit our Using the Slack pack article for instructions on how to install.
Once you've authenticated with the Slack pack, you can send messages directly from inside your doc.
To do so, insert a button in the canvas or within a column (column type 'button'), and select 'Slack' > 'Post message' as the button type. Then fill out each field in the button configuration.
To point the button to a slack channel, enter # and the channel name in the field.
To point to a specific person, you can use their email address directly in the field. If you have a people column in the same table, you can point the field to "[Person].[Email]" as in the example below.
One thing to note: the Slack message will come from whichever Slack account is listed in the Account field of the button. If you're sending a message to yourself from your own Slack account, you won't receive any notification in Slack.
Send a message to users in Slack
Imagine you have a table that contains a list of tasks. In this table, you have the following columns for each task listed: Task, Owner, and Task Stage. We can achieve this with a button press using the Slack pack and formulas in Coda.
To send a Slack message to all members mentioned in the Assigned column (assuming this is a People column format), we’ll take advantage of the email addresses associated with every Coda profile to send notifications directly to each assignee's DMs.
To begin, add a new button to the table. Then, click the f button to bypass the formula builder and add your own custom formula.
If you opt to copy & paste the formula below, be sure to update inputs like the User's private Slack account authentication key and any column references that don't exactly match up.
[User's private Slack account],
"Your task of, ", thisRow.Task, ", is due on ", thisRow.[Due Date], "."
After you've typed out your formula in the formula builder, it should look something like this:
Post a message in a Slack channel
Let's imagine you have a table with your team's weekly meeting notes and you want to post those notes on your team's slack channel. To do this, you can do the following:
Add a button column to your table. Label it whatever you like. (e.g. "Send notes")
To choose the button action, go to "Packs" --> "Slack" and select "Post Message".
Select the Slack account you want to send the message from.
Add the content of your Slack post (in this case, "Meeting notes").
Type the name of the Slack channel you want to post in (e.g. "team-channel").
Feel free to give your button color and an icon! 😃
Watch this gif below to see these steps in real time.
Note: Messages sent on slack default to plain text. If you want to add formatting to your messages (e.g. bold or italics), continue reading below.
Reply to your Slack messages from your doc
You can send replies to a Slack thread straight from a Coda doc. When you send a message through the Pack, you can generate the message link as confirmation.
Thread your messages
You’ll also be able to break long chunks of text into a Slack thread, managed directly from your doc. I tested this update over the past few weeks and found it particularly helpful when I had to send someone many messages in a row. I lead with what my audience needs to know, then thread the context so they aren’t overwhelmed by an extremely large text block or by many direct messages.
Format your Slack message
If you want to add some style to your Slack message like
tagging (e.g. @here)
check out this helpful doc from one of our very own to learn more!