Hello @pankaj chaturvedi
Thanks for the ask and also using the Microsoft Q&A.
Can you please let me know as to what will be the filename for say date September 25th 2020 ?
Will it be Customer_2020925.csv or 20200925.csv ( please look into the extra"0" before 9) ?
If its 20200925.csv the below logic will work.( i have tested that )
You can use the below solution with some changes .
https://learn.microsoft.com/en-us/answers/questions/136815/index.html
- Update the default value for TakeAnyStartDate to something like TakeAnyStartDate 20001027
- Inside the FE loop add SET Variable activity "DatewExtract_fromFileName" use the expression
@substring( variables('filename') ,indexof(variables('filename'),'2') ,8 ) - The IF expression should be updated with
@greater(int(variables('DatewExtract_fromFileName')),int(variables('TakeAnyStartDate'))) - Inside true condition you should have only one SET Variable activity with the expression as SET Variable activity
In the case if the file for September is Customer_2020925.csv , we will have to parse the string and appened "0" for month.
Let me know how it goes .I am attaching the pipeline JSON if that helps .
35582-pankajjson.txt
Thanks Himanshu
Please do consider to click on "Accept Answer" and "Up-vote" on the post that helps you, as it can be beneficial to other community members