简体   繁体   中英

How to add date to filename during copy activity in Azure Data Factory?

I am pulling a folder from an SFTP in Azure Data Factory, this folder will always have the same name, so I specified it explicitly in my copy activity, but I am trying to figure out how to add the date that it is being copied over to the current file name. The folder is being taken from the SFTP and being stored in ADLS Gen2. Attached below is the copy activity and the source data set.

在此处输入图像描述

在此处输入图像描述

In the Sink dataset, you can use something like this in the filename:

@concat('EmailTrackingExtract_',formatDatetime(utcnow(),'dd-MM-yyy'),'.csv.zip')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM