简体   繁体   中英

Adding the Dynamic content in ADF V2

I need to add Dynamic content to the file name which should be last day of the month. For Example if i run the job in April it should generate the file name as last day of the March.

Expected result be in the following format.

20190331.csv.zip

Thanks in Advance.

I think something like this in your blob filename

@concat(formatDateTime(adddays(utcnow(),mul(int(formatDateTime(utcnow(),'dd')),-1)),'yyyyMMdd'),'.csv.zip') 

get the day bit from utcnow , turn to an int , mul tiply it by -1, adddays the negative number to utcnow and then formatdatetime as yyyyMMdd then concat with whatever you want on the end

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