Skip to main content

I am creating an automation that looks for existing customer channels and either adds users to it or creates a new channel to add users to. I have the new channel creation process in place but ran into an edge case with existing channels.

I check to see if a slack channel exists by ‘finding public slack channel’  in step 9. which provides me with a result id for the slack channel 

 

 

I then use that result id in two of my paths where a slack channel exists to add myself and other users to the channel. In this case step 21 threw the following error for me:

 

 

Looking at the zap replay it looks as though the result id from step 9 wasn’t carried through but I stepped through a test and it looked to all connect. Is this because I’m not in the channel even though its public? For this specific trigger the bot actually ended up in the channel and firing off its message but none of the users were added from the automation to see it (I ended up manually adding).

Part of Step 21. is to add myself and other users to the channel so I’m not sure how to prevent this error from happening.

 

 

Looking through the Zapier AI responses to fix this it looks as though there currently isn’t a way to set an automation to have yourself join a channel before adding others and a bot.

This is the only answer I have been able to find so far which isn’t helpful at scale: “To resolve this, ensure that either your Slack account or the bot you're using has been added to this channel. You can do this manually in Slack by navigating to the channel and inviting the bot or yourself.”


Hi ​@jellyfish 

For us to have more info about the encountered error in Zap step 21, post screenshots showing the data payload for DATA IN tab.

 


Hey ​@Troy Tessalone that’s my bad. Here you go: 

 


@jellyfish 

Try adding yourself to the Slack Channel first, then in another step add the other Slack Users.


@Troy Tessalone 

I tried creating a step before to add myself first and it threw an error that you “can’t invite self” 🙃
 

Slack > Invite user to channel > myself. 

I didn’t see any other options for “joining” a channel


@jellyfish 

Check if you have the correct Slack app account permissions: https://zapier.com/app/connections

 


@Troy Tessalone this is most likely the case! I’m using my own account for the connection and am neither a slack owner or admin. I’ll have to work with my team to a service account or something set up. Thanks for taking the time to help me!


That’s awesome ​@jellyfish! A huge thanks to Troy for pointing you in the right direction!

If you have any other questions, please don’t hesitate to reach out to the Community. We’re always happy to help! 🤗


Reply