<@ULVA73B9P> we need flow_run|ui_url parameter ins...
# ask-marvin
m
@Marvin we need flow_run|ui_url parameter inside the prefect flow, how we can acheive this?
m
To access the
ui_url
parameter of a flow run within a Prefect 3.x flow, you can utilize the
prefect.runtime.flow_run
module. Here's how you can retrieve the `ui_url`:
Copy code
python
from prefect import flow
from prefect.runtime.flow_run import ui_url

@flow
def my_flow():
    print(f"Flow run UI URL: {ui_url}")

my_flow()
This will print the UI URL for the flow run, allowing you to access it programmatically within your flow. For further details, you can explore the Prefect documentation or the Prefect runtime module.