We are hoping to use Parameters to pass in a diffe...
# prefect-community
j
We are hoping to use Parameters to pass in a different value for one of our flows (through the UI and also through the API). Is it best to just have a default parameter value in the flow definition at first so it will change if we pass another value through? I can’t seem to find in the docs how to grab the parameter in the flow that is passed through especially if we create a flow run with the API. We are using prefect 1.0 atm
1
a
yes 100% - default values are best practice since otherwise such flow can't be scheduled this post dives deeper https://www.prefect.io/guide/blog/how-to-make-your-data-pipelines-more-dynamic-using-parameters-in-prefect/
j
Thank you so much @Anna Geller! This has cleared up all my questions!
🙌 1