Thanks for clarifying the ask .
Look the date is substring which you are reading from the file name and so you cannot use that way .
I did work on this and introducing an if activity will help you validate if the file name ( i mean the date part is in the range )
is to be copied or not . I used the below expression in the IF activity
@ANDO (lessOrEquals(int(variables('name')),int(pipeline().parameters.Enddate)),greaterOrEquals(int(variables('name')),int(pipeline().parameters.Startdate)))
variables('name') : captures the file name eg "20200916"( you already have the expression for that )
Inside the IF activity , you should place the COPY activity in "True" condition .
Though the logic is simple , I am sharing the animation .
Also you will have to convert the Startdate and EndDate paramters to yyyyMMdd format by using @formatDateTime(pipeline().parameters.startdate,'yyyyMMdd')
I have hardcoded that in the solution to have a quick test .
Note : I am not adding the copy activity as I think you have already figured out that .
Thanks Himanshu
Please do consider to click on "Accept Answer" and "Upvote" on the post that helps you, as it can be beneficial to other community members.



! 

