Sep 22, 2020 09:12 PM
I saw elsewhere that Airtable-limited markdown is available for Automations (possibly only for emails? - not clear), but I can’t seem to get the markdown to work for Slack message automations.
:loudspeaker: : The Accounting base in :airtable: has been updated by
[Record (Step 1: Trigger) | Field values | By | Name]
with the following release notes:
[Record (Step 1: Trigger) | Field values | Description ]
So that the message in Slack looks like this:
:loudspeaker: : The Accounting base in :airtable: has been updated by frozenforum with the following release notes:
- Created a new Client Companies table
- Converted Client Company field to be a link to Client Companies
- Moved company groups to Client Companies table
But instead, the Slack message looks like this:
:loudspeaker: : The Accounting base in :airtable: has been updated by frozenforumwith the following release notes: 1. Created a new Client Companies table
2. Converted Client Company field to be a link to Client Companies
3. Moved company groups to Client Companies table
I cannot get the new line (hard return) after the colon in release notes, although it does show up in the subsequent lines of the record field.
I also cannot get a space after the Name record field, so it says [name]with.
Is this a bug or am I doing it wrong (or both!)?
Sep 23, 2020 03:16 PM
Okay, so here’s the deal (I think):
Sep 23, 2020 03:20 PM
My guess is that you’ve probably stumbled upon a bug with Airtable’s Slack integration. When I said that it was working for me, what I failed to mention was that it works for me when “sending an automated email via Airtable’s automations”, not “posting to a Slack channel via Airtable’s automations”. I would email support@airtable.com about this situation, and please report back here with what they say!
Sep 23, 2020 05:17 PM
This is certainly a possibility. But isn’t @egordin simply creating a custom integration using an automation plugin that pulls data from Airtable fields and pushes them into Slack without any presumption of specific formatting? Ergo - aren’t we on our own when we ask Airtable to push data into Slack via an automation plugin?
If my assessment is accurate, it seems that there are two outs for @egordin -
Neither of these are particularly ideal approaches, but I sort’a get it If Airtable support says -
Hey, we gave you the ability to automate messaging from Airtable to Slack; formatting nuances are your problem.
One test you might want to try -
If it works, you could create a formula that uses SUBSTITUTE() functions to create a Slack-ready long text field from your description field.
I’m currently building a massive reflector between a large development team and a giant Insided community (like the community we’re in right now). In the process of doing this, I have learned much about the Slack markdown spec and all of its nuances and I would not blame Airtable for a NY minute for not attempting to create a unified transformation between rich text fields in Airtable and Slack message outcomes. HTML to Slack and back requires a massive number regex transformation possibilities.
Sep 25, 2020 03:52 PM
Quick update - I spoke with Airtable support and they assured me that everything should be working. I recreated the Slack message in the Automations window and the space after the name works. The hard return also works. The list isnt formatted as a Slack list, but that’s ok for my needs. Thank you everyone!
Sep 25, 2020 10:10 PM
One more quick update for anyone’s future reference. I wanted to see how in-line links could be sent to Slack from Airtable automations, and I read that formatting guide for markdown on Slack that @Bill.French recommended. Works perfectly.
I even got Slack to show an attachment photograph from a record by creating a link with a space as the inline text. Slack sowed the photo below the message and I didn’t need to have a link that was visible. Amazing.
Adjust the text that appears as the link from the URL to something else:
<http://www.foo.com|This message *is* a link>
May 10, 2021 06:24 AM
Hi all,
I was reading this thread, and I think it’s tied to my question, but it’s not exactly what I need. (Or I can’t figure out how to apply it to my case. :slightly_smiling_face: )
For my slack name, it’s pretty straightforward: “@nicholas”. But in the case of some of my other colleagues they have a space in their name “@Michael Scott”. I’m trying to write an automation that sends a message to Slack and tags the respective person.
In this example – I get mentioned (because the “@nicholas” matches my Slack name. But Michael wouldn’t get notified.
I have a hunch that it’s probably something in the slack name (like “Michael_Scott” or “Michael-Scott”), but I’m not sure.
Has anyone run into this problem before?
May 10, 2021 07:00 AM
The Slack API requires tagging people by their member ID, not their username.
This is also explained here:
Jul 07, 2021 05:35 AM
Nov 16, 2023 11:46 AM
I have been having this same problem. I've been using the guide for Markdown in Slack linked in the Airtable automation. The other formatting commands (like *bold* and the hyperlink format) are working but "\n" isn't working - it just translates into \n text in my slack message rather than a line break. You just re-created the automation step and it worked?