Can I run a flow, which takes its results and passes them as a parameter to a separate independent f...
e
Can I run a flow, which takes its results and passes them as a parameter to a separate independent flow?
n
hi @Eilon Eilstein - in general its the same way you would pass the results of one python function to the next
Copy code
result = foo()
bar(foo_result=result)
where in this case,
foo
and
bar
are two flows that should run in the same process if
bar
is a separate deployment, you'd do
Copy code
result = foo()
run_deployment(name="bar-deployment/bar", parameters={"foo_result": result}) # run somewhere else
e
can I implement this where foo() is in 1 code file, with its own deployment, and bar() is in a separate one?
@Nate or even better - can I create an automation/event that triggers my flow
flow2
when a different flow,
flow1
is successful AND passes a predefined parameter to flow2 that I can access in my flow's code?