Hey folks, in v2, I'm trying to pull the email of...
# prefect-cloud
j
Hey folks, in v2, I'm trying to pull the email of the account that executed the current flow run (in case of adhoc runs). I'm having some trouble however using the client and FlowRunFilter. No matter what filters I add, I keep getting all the flow runs. For now running locally but this will get deployed to Cloud eventually as a task. My understanding from the docs is that
runtime.flow_run
does not have the account information, which is why I'm using the client. Is there an even better way to get this information? Minimal example that's returning too many flow runs:
Copy code
flow_runs: list[FlowRun] = await client.read_flow_runs(
    flow_run_filter=FlowRunFilter(
        id=FlowRunFilterId(_any=list(runtime.flow_run.id))
    )
)
Any ideas? Nevermind found the issue:
_any
vs
any_
.
🙌 1
✅ 1