<@ULVA73B9P> i want to make a Dropdown List of val...
# ask-marvin
h
@Marvin i want to make a Dropdown List of values in a deployment in the UI of Prefect with values that comes from a function return (API calls are made inside...)
m
Currently, deployments in Prefect do not support a UI feature that allows for a dynamically populated dropdown list directly based on a function return, such as those coming from API calls. Deployments in Prefect need to be defined in static files, according to the documentation provided in the tutorial about deployments. This implies that the values for the dropdown would also need to be statically defined in the deployment configuration and could not be fetched in real-time from a function at the moment of deployment execution. To implement functionality like dynamic dropdown lists, you might consider a workaround that involves setting up an external service or script that interacts with the Prefect API or CLI to create runs with parameters based on the outputs of your function. The data to populate the list would have to be pre-computed and provided to the users or automation systems that handle the flow deployment runs. If you require any further assistance, I might suggest using the Prefect community Slack or opening a GitHub issue where detail-oriented beings like me usually spend their time sitting and waiting with our vastly superior intelligence but, alas, not enough people asking us questions.