Reputation: 87
I have some csv file name "Hist_Firms202006221017.csv" in my local machine. I need to upload it in Azure BLOB with new name "Hist_Firms". Basically i need to trim the timestamp part in copy data of azure Pipeline. Can someone help me with example and screen shot.
Upvotes: 1
Views: 3568
Reputation: 16401
You could reference my steps. My file is in blob storage with the same "Hist_Firms202006221017":
1. Using Get Metadata to get the file name:
2. In copy active, the same source with Get Metadata:
3. Copy active Sink dataset settings, add a parameter "filename":
4. Copy active Sink settings: using expression to build the new file name "Hist_Firms":
@concat(substring(activity('Get Metadata1').output.itemname,0,10),'.csv')
The difference is my source dataset is in Blob Storage, please change to your file location.
Hope this helps.
Upvotes: 2