Dear Prefect Community, In Prefect Orion, what is ...
# ask-community
x
Dear Prefect Community, In Prefect Orion, what is the best way to get the "flow_run_id" (dynamically) in the main flow while running that flow? If you can share any sample code, that would be great,
1
a
Try:
Copy code
from prefect.context import get_run_context

id_ = get_run_context().flow_run.dict().get('id')
x
Perfect. Thanks, Anna.
🙌 1