be configured to send messages to different channels depending on what flow it is being run in?
d
Dylan
03/08/2021, 5:51 PM
Hi @kevin!
That is possible, but not by configuring a channel name. Slack sets up webhooks that only post messages to a single channel. So, if you’d like different flows to send messages to different channels, you’ll need to register different webhooks and then use that webhook in the Flow
k
kevin
03/08/2021, 5:52 PM
gotcha, so the onus is on slack to indicate which channel receives the message
d
Dylan
03/08/2021, 5:53 PM
I would suggest using a different Prefect Secret for each webhook (maybe with different channel names) and then pass the secret name for the channel you’d like to use:
A Secret is a special concept in the Prefect world because we treat it very carefully and it’s encrypted at rest and in transit (we use Vault behind the scenes)
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.