Skip to main content
Solved

Slack Automation with Display Names

  • June 12, 2023
  • 5 replies
  • 111 views

Anna11
Forum|alt.badge.img+12

I've built a Slack automation that posts notifications to a channel when user requests are fulfilled. I would love it if it would "@" mention the requester to notify them when it's posted, but in testing I found that while it would show the display name (e.g. "@Anna"), it isn't activated and doesn't trigger a normal Slack notification. Has anyone found a way to make this work?

Best answer by Stephen_Orr1

Sadly, no, still doesn't work. It doesn't show the chevrons, but it still doesn't "mention" the user. I tried it both with the user name hard-entered into the text of the automation and using a variable (which is what I really want), and neither worked. 😩


Hmm could it have anything to do with Slack changing @mentions from user name to display_name? Airtable docs recommend using the Slack member ID if the user name isn't working:

https://support.airtable.com/docs/send-a-slack-message-action#mentioning-slack-users

edit: this page also mentions dynamically generating the @mention ID using a formula field which sounds like what you're after

5 replies

Forum|alt.badge.img+18

Hi @Anna11,

Try sending the Slack display name as <@Anna> instead of @Anna

https://api.slack.com/reference/surfaces/formatting#mentioning-users

-Stephen


Anna11
Forum|alt.badge.img+12
  • Author
  • Inspiring
  • June 12, 2023

Hi @Anna11,

Try sending the Slack display name as <@Anna> instead of @Anna

https://api.slack.com/reference/surfaces/formatting#mentioning-users

-Stephen


Sadly, no, still doesn't work. It doesn't show the chevrons, but it still doesn't "mention" the user. I tried it both with the user name hard-entered into the text of the automation and using a variable (which is what I really want), and neither worked. 😩


Forum|alt.badge.img+18
  • Inspiring
  • Answer
  • June 12, 2023

Sadly, no, still doesn't work. It doesn't show the chevrons, but it still doesn't "mention" the user. I tried it both with the user name hard-entered into the text of the automation and using a variable (which is what I really want), and neither worked. 😩


Hmm could it have anything to do with Slack changing @mentions from user name to display_name? Airtable docs recommend using the Slack member ID if the user name isn't working:

https://support.airtable.com/docs/send-a-slack-message-action#mentioning-slack-users

edit: this page also mentions dynamically generating the @mention ID using a formula field which sounds like what you're after


Anna11
Forum|alt.badge.img+12
  • Author
  • Inspiring
  • June 12, 2023

Hmm could it have anything to do with Slack changing @mentions from user name to display_name? Airtable docs recommend using the Slack member ID if the user name isn't working:

https://support.airtable.com/docs/send-a-slack-message-action#mentioning-slack-users

edit: this page also mentions dynamically generating the @mention ID using a formula field which sounds like what you're after


Aha, amazing, the Member ID works! So, for anyone else looking to do the same, the syntax is <@{Slack member ID}>. Thank you, @Stephen_Orr1 !


Forum|alt.badge.img+18

Nice, glad it worked! Please feel free to mark my earlier reply as a solution if it was helpful here

Thanks! 🙂