Hi everyone!
I have configured an Automation in the prefect UI to send slack messages when the Flow state changes. When I am registering a new flow, is there a way of linking that new flow with the
automation action
without going to the UI?
k
Kevin Kho
11/10/2021, 1:52 AM
I believe you can with the GraphQL API using the
Mutation.create_flow_run_state_changed_hook
and then you link action
s
Samil
11/10/2021, 1:59 AM
Thanks for the reply @Kevin Kho. I will try it.
Another thing I wanted to know is if it's possible to customize the slack message in the UI like making bold fonts and line break
k
Kevin Kho
11/10/2021, 2:00 AM
Try adding the markdown styling here in the Automations tab
s
Samil
11/10/2021, 2:04 AM
Cool will try that
m
Maikel Penz
11/10/2021, 2:45 AM
@Kevin Kho is there a way this can be done without GraphQL ? like through a property of the flow.. e.g: like we do for flow.storage, flow.run_config, etc..
k
Kevin Kho
11/10/2021, 3:13 AM
I can elevate the feedback, but this will likely not happen for Prefect 1.0, and would be deferred to Orion.
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.