Hi @Krishnamohan Nadimpalli ,
Welcome to Microsoft Q&A platform and thanks for posting your query.
As I understand your question you want to fetch the fileNames and lastModified date for each files present in any folder and subFolder inside a container of ADLS. Please let me know if my understanding is incorrect.
For this purpose, you need to use nested loop concept. Taking the example you provided:
- Use GetMetadata activity pointing the dataset to the
container
and select argument aschild Items
. - Use ForEach block with Items as
@activity('Get Metadata1').output.childItems
to loop through each folders present . - Use IF block to check the condition
@equals(item().Type,'Folder')
. If the item is a folder , then call another pipeline via Execute pipeline activity. - Inside IF block, true condition, add another GetMetadata Activity to get the child Items and last modified.
At this stage, you would be able to get the desired output for container/business3/business_file3.csv
.However, for the other cases, you need to keep applying this logic for quite a few times
Easier approach for this would be to write customized code using Python or C# and use Azure function or Azure data bricks.