Reputation: 824
I am trying to run a Copy Data pipeline that processes daily file feeds from an SFTP server. The naming of those files are:
abc_2021_07_21_010340.csv
abc_2021_07_20_010441.csv
abc_2021_07_19_020540.csv
...and so onwhere
abc
is the prefix;_2021_07_20_
is the year, month, and day of the daily file;010340
is the timestamp where the file was generatedHow do I correctly write the wildcard syntax based on today's date? I have tried the following but it did not worked:
@{concat('abc_', formatDateTime(utcnow(), 'yyyy_MM_dd'),'*.csv')}
EDIT on 13-07-2021
Removing the curly braces, but was shown with a No preview data to show
message.
Upvotes: 0
Views: 636
Reputation: 7728
The concat function looks correct, but I don't think you need the curly braces. This example was produced with the expression builder and does not contain them:
Are the files in a Folder on the SFTP server? If so, that needs to be specified as well.
Upvotes: 1