I have a workflow in which I need to notify certain users via Slack when something happens. I have stored these slack user IDs in a global variable (using the Storage action). I can pull the slack user IDs just fine; when I test the Get Value action, the correct value is returned.
However, when I set up a step to send a DM to the user via Slack, the step won’t let me continue to the test screen. The variable is clearly being pulled into the username field just fine, but the Continue button is grayed out. I tried setting the username to a direct reference to a username (using the To Username tab to select a user, rather than the Custom tab to pull in my variable). That works fine. If I do that, and then switch to Custom, pulling in my variable, it looks like it works fine and I can click the Continue button. But when I test, it’s sending to the directly-selected username, rather than the variable. If I click back on the Set Up Action section of the Slack step, I see the directly-selected username, NOT the variable.
This is new behavior. I have been able to send a message to a user by pulling in their username dynamically in the past. Did Zapier introduce a bug into the Slack connector?
New bug with Slack DM action (custom username)?
Best answer by Janine_AndersonBest answer by Janine_Anderson
Hi,
Here’s how it looks when you’re bringing in data from an earlier field in your Zap. I typed in the <@, then brought in the data from a prior step, and then closed with >. I
I’d recommend trying this. Be careful that you haven’t inserted any spaces between the data pill shape and your symbols.
Let me know if it works!
Janine
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.