Hi, I'm using 1.0. Is it possible to programmatica...
# ask-community
h
Hi, I'm using 1.0. Is it possible to programmatically get FlowRunViews from flow run names rather than flow run ids? I'm trying to get the state of flow runs using names.
k
I see it takes a name in the FlowRunViews api but not sure if there is a function you can call for just the names. https://docs-v1.prefect.io/api/latest/backend/flow_run.html#flowrunview You could always first call a graphql query to return the flow id before passing it to the method.
z
It does not, since names are not necessarily unique. I’d happy accept a pull request that adds a
from_flow_run_name
method which retrieves the latest flow run for the given name.