https://prefect.io logo
Title
j

John Mizerany

08/19/2022, 1:56 PM
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

Anna Geller

08/19/2022, 2:03 PM
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

John Mizerany

08/19/2022, 2:08 PM
Thank you so much @Anna Geller! This has cleared up all my questions!
🙌 1