4
votes

I am trying to use two forEach activities to iterate on subfolders of folders with parameters to get metadata of subfolders. I have forEach1 and forEach2 with their own items array. Within the second for loop I need to combine both for loops' item() in a Metada activity to access my dataset like @item1()@item2(). Is this possible?

enter image description here

2

2 Answers

4
votes

Nested foreach activity is not allowed. But you could use an execute pipeline activity inside the foreach activity. And in the nested pipeline, you could have another foreach.

0
votes

It is possible but the second ForEach activity needs to be inside the first one, not another activity in the pipeline.

As you have it now, the first ForEach will run until completion, then the second one will start and you cannot access the items in the first one.

Hope this helped!