Skip to main content
Best answer

Slack Private Channel: Only send message if user is in channel

  • August 18, 2021
  • 1 reply
  • 56 views

I have a very simple Zap that is triggered when my team’s CRM detects an issue with a customer (e.g. an automated email campaign bounced). Using the CRM data, the Zap finds the customer’s assigned consultant in Slack, then sends a private channel message to our bouncelog, @ mentioning the consultant and giving a link to the customer’s info. Unfortunately, we recently started having issues where the Zap is being triggered for customers with consultants that aren’t part of our team, and therefore aren’t members of this channel. The Zap still tries to @ mention them, which causes problems on the Slack channel.

Is there a way to look up the members of a Slack channel to use in a filter/code step? Or some other way to make sure this Zap doesn’t try to @ mention users who aren’t in the channel?

Best answer by Troy TessaloneBest answer by Troy Tessalone

Hi @mgarrett2767 

Try one of these Slack action steps in the Zap followed by a Filter step.

Filter: https://zapier.com/apps/filter/help

 

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 30830 replies
  • Answer
  • August 18, 2021

Hi @mgarrett2767 

Try one of these Slack action steps in the Zap followed by a Filter step.

Filter: https://zapier.com/apps/filter/help