Share via

ADF: complex parameter reference

Tal Zadok 21 Reputation points
2021-03-22T10:05:46.04+00:00

I have 2 pipelines: master and child.
master pipeline contains a foreach loop which calls the child pipeline (execute pipeline activity).
the child pipeline contains a single activity of data explorer command.
foreach item is being passed as parameter to child pipeline.

1 - in master pipeline, how can I define an array of complex objects to iterate in foreach?
using square brackets with complex objects raised an error.
probably something like:
@createArray( json('{"cloudEnv": "ffx", "states": ["a", "b"]}'), json('{"cloudEnv": "mck", "states": ["c"]}')) ?

2 - how can I reference a sub-field (e.g "states") in the child pipeline, within the kusto query?
tried "mytable | where State in [pipeline().parameters.cloudobj].states" but that didn't work.

Thanks

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.