Search code examples
azureazure-data-factory

Data factory foreach with global parameters


In Azure Data factory, I want to iterate over some of my Global Parameters in a foreach loop:

enter image description here

Unfortunately, the @array declartion is wrong as shown above and giving this error:

enter image description here

Any idea?

The global parameters are correctly defined and published:

enter image description here


Solution

  • You can use create array function as below.

    @createArray(pipeline().globalParameters.aaaaaaaaaaaaaaaaaaaa,pipeline().globalParameters.bbbbbbbbbbbbbbbbb)
    

    enter image description here

    Output:

    enter image description here

    For more information about adf functions check this doc.