Hello! How do I access the string value in a Param...
# ask-community
a
Hello! How do I access the string value in a Parameter object? I'm passing a string Parameter to a flow throw the CLI as
prefect run --watch --id flowId --param strparam="paramValue"
. Then in the flow.py file, I am initializing outside the flow
strparam = Parameter("strparam", default "hello")
but I'm unable to access
"paramValue"
. Prefect only sees this
<Parameter: strparam>
a
A prefect parameter is a task, so it belongs within the context of a flow. Move that line to within the flow.
💯 1
upvote 1
315 Views