Does anyone know how to mention `@channel` or `@he...
# prefect-community
k
Does anyone know how to mention
@channel
or
@here
in the
SlackTask
message? Right now I can tag myself using my user ID but it doesn’t work when I try it with my channel ID or
@channel
or
<@channel>
Copy code
... 
       elif new_state.is_failed():
            data_engineer_user_id = Secret("DATA_ENGINEER_USER_ID").get()
            msg = f"<@{data_engineer_user_id}> — {obj} ({flow_run_name}): {new_state}"
            SlackTask(message=msg, webhook_secret="SLACK_WEBHOOK_URL").run()
k
Looks like the syntax is
<!channel>
? Based on this . That’s weird lol
upvote 1
k
Oh! Thanks @Kevin Kho! I should’ve googled it more. Sorry 😞
k
No worries! I don’t even know that will work
k
testing now
it works!