简体   繁体   中英

Add Dynamic Content - Azure Data Factory ADF V2

I need to add a Dynamic Content in an ADF. In such a way that it needs to read the files from the folder with name as 'StartDateOfMonth-EndDateOfMonth' as below format.

Result: 20190601-20190630

Here are a few steps for how you can achieve that:

  1. in DataSet:
    • create parameter "Date"
    • set up a connection to one selected file
    • now, replace "File" field with expression, similar to the following:

@concat('filedata_',dataset().Date,'.csv')

  1. in Pipeline:
    • when using above DataSet, you just must pass the value, which you can set up by 'Set Variable'

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