Hey, how can I map flow of flows with dynamic para...
# prefect-community
r
Hey, how can I map flow of flows with dynamic parameters? something like this: (Is it possible to get the parameters from a task?)
Copy code
parameters = ['~/folder1', '~/folder2', '~/folder3']
    create_flow_run.map(flow_name="List dir", parameters={"folder_path": ???})
k
Yes you can get the parameters from the task. In this case, parameters has to be a List of dictionaries. So you need to make it with the structure
Copy code
[{"folder_path": '~/folder1'}, {"folder_path": '~/folder2'}]