I have an ADF pipeline with copy activity, I'm copying data from blob storage CSV file to SQL database, this is working as expected. I need to map Name of the CSV file (this coming from pipeline parameters) and save it in the destination table. I'm wondering if there is a way to map parameters to destination columns.
Column name can't directly use parameters. But you can use parameter for the whole structure property in dataset and columnMappings property in copy activity. This might be a little tedious as you will need to write the whole structure array and columnMappings on your own and pass them as parameters into pipeline.
来源:https://stackoverflow.com/questions/51760981/use-adf-pipeline-parameters-as-source-to-sink-columns-while-mapping