Currently, in Data Factory, the ForEach activity does not support nesting, meaning you cannot place one ForEach loop inside another. This limitation makes it difficult to process complex, hierarchical data structures where an outer loop needs to iterate over a set of items, and an inner loop should perform additional processing for each item. Allowing nested ForEach loops would enable more flexible and scalable workflows, eliminating the need for workarounds like using multiple pipelines or flattening data before processing. Additionally, conditional logic inside ForEach loops is another missing capability. Right now, if you need to execute certain logic only when a condition is met inside a loop, you must create separate activities outside the loop or use multiple pipelines. Enabling If activities inside ForEach loops or allowing ForEach loops inside If activities would improve efficiency by allowing more dynamic decision-making without extra pipelines or unnecessary complexity. These enhancements would provide greater flexibility, reduce pipeline fragmentation, and simplify workflow design.
... View more