Using the copy activity, I need to fetch only the latest file within a folder.
Example: Folder
File1
File2 where File2 is the latest one.
However, it is taking both files.
I followed: https://docs.microsoft.com/en-us/azure/data-factory/solution-template-copy-new-files-lastmodifieddate
Also tried in the source dataset>Connection>Filter by last modified
Start Date: @adddays(utcnow(),-31)
End Date: utcnow()
I expect only the last modified file to be taken within the range date specified.