โ02-14-2022 09:35 AM
I am using Slack new event trigger in my recipe, but it takes trigger only once. To take an event again from Slack I have to create another recipe because one recipe takes trigger only once in the initial test. How can it take multiple events from a single recipe?
I will be thankful to someone who helps me to figure it out.
โ02-14-2022 10:05 AM
Hey Durgesh, are you using a Custom OAuth Profile with your Slack connection? Also, why do you want multiple events going into the same recipe?
โ02-21-2022 06:51 AM
Assuming you're using a custom profile for your Slack connection, you can go over to your Slack app https://api.slack.com/apps/{your_app_id}/event-subscriptions and subscribe to all sorts of user events:
Since these events all go to the same recipe:
you can then do some simple IF logic to decide how to respond to the different events. In the example below, the recipe responds to 2 different events: a 'test' message to the #general channel, and reaction_added event added to messages anywhere:
View the recipe. Hope this helps!