简体   繁体   English

在ADF V2中添加动态内容

[英]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 20190331.csv.zip

Thanks in Advance. 提前致谢。

I think something like this in your blob filename 我认为你的blob文件名中有这样的东西

@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 获得从当天位utcnow ,转向一个intmul tiply它由-1, adddays的负数utcnow然后formatdatetime为YYYYMMDD那么concat ,不管你想在年底

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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