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?
Please provide screenshots of how your Slack step is configured in the Zap.
Using variable in username (had to cut & paste to get the button in the image):
Using a static username:
I was unable to replicate the issue described.
Are you still encountering this issue in the Zap step configuration?
Yep, still happening.
If you have a slack DM step already set up using a static username (not dynamic), then you change it to the dynamic username - it LOOKS like it is okay. But if you actually send the DM, it will go to the static username you selected initially, and if you go back to edit the step, you’ll see the static username in there, not the dynamic one.
Tested as well then edited but was still unable to replicate your issue.
Perhaps submit a ticket to Zapier Support: https://zapier.com/help
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
Hi there
I did try Janine’s suggestion, but it didn’t work for me. I did find a weird workaround though; if I send the DM to more than one person, it actually gets sent out. So I’m essentially cc’ing myself on all these slack message now.
EDITED: Ugh, sorry - this was in reference to a different Slack problem I’m having, that has been identified as an actual bug. THIS problem was fixed when I switched to using the slack user ID instead of the slack username.
Thanks for sharing
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.