Hi @khouloud Belhaj ,
Thank you for posting query in Microsoft Q&A Platform.
We can achieve this in two ways. One is using copy activity and another is using Data flows.
I explained both ways below in detailed. kindly check them.
Approach 1: Using Copy Activity
Inside, copy activity we can make use of "additional column" setting under source tab to add a column with file name. Kindly check below gif to understand better
Approach 2: Using Data Flow
Step1: GetMetadata activity to get file Name
Step2: Create a data flow with FileName Parameter in it.
Step3: Source transformation which points to your source file and derived column transformation to add new Column with fileName and Sink Transformation to load data in to target
Hope this will help. Thank you.
- Please
accept an answer
if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how. - Want a reminder to come back and check responses? Here is how to subscribe to a notification.