Hello, is there a way in python to get flow id by...
# ask-community
l
Hello, is there a way in python to get flow id by its name and project?
k
What are you trying to do? Because the
create_flow_run()
can start a flow by name and project already so if that is the use case, no need to work with the flow id
l
I'm trying to start a flow run and want to show the link to the flow run in a separate UI.
k
You can do
create_flow_run(flow_name=…,project_name=…)
and that will find the id are start it for you. It returns the
flow_run_id
of the new run
Like this task
l
Gotcha! Thank you!
Wait. But that is the
flow_run_id
. Is it possible to get the
flow_id
?
k
Ah ok you’d need to use the graphql API for that with
client.graphql()
l
Gotcha! Thanks!
k
This is a good example
🙌 1
l
Super helpful! Thanks
z
You can also use
FlowRunView
or
FlowView
FlowView.from_flow_name
takes a name and project
l
Thanks!!!