I'm working on a ADF v2 pipeline, which copies data from csv blob to Azure SQL database table. For each load I would like to collect source metadata, like source blob name, and save it to a target table as a part of data lineage framework.
My blob source run the following schema:
- StoreName,
- StoreLocation,
- StoreTaxId.
My destination table run the following schema:
- StoreName,
- StoreLocation,
- DwhProcessDate,
- DwhSourceName.
I do not know, how to properly include name of the source in the mapping section of Copy Data activity.
For the moment I have:
- defined a [Get Metadata1] activity to get references to all blobs that are available from Azure Blob Storage
- defined a [ForEach1] activity, iterating through the output of an expression @activity('Get Metadata1').output.childitems
- inside the [ForEach1] activity, I have placed [Copy Data1] activity, where I have source and sink sections defined.
What I'm looking for is a way to add extra line to the mapping section, which will samehow bind @item().name to destination column [DwhSourceName]
Thanks for all suggestion on how to achieve this.