I have a MetaData activity and a foreach activity connected to it.
I run this ForEach activity sequentially and here is the item it iterates over:
I have a copy activity within this foreach activity:
So I have 4 childItems that I get from my meta data activity. And I need to set the folder name in data lake based on the childItem value. In order to access the Child Item I have to use the zero based index. Can I set it dynamically? I assumed there would be something since it is already in a loop and is running sequentially. So I would not have to do
@activity('GetMetaData').output.ChildItems[3].name
but use the index
@activity('GetMetaData').output.ChildItems[index].name