Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi,
I have a fabric pipeline where i want to get a content of the file and name of the file in alakehouse table. But I am not able to get the file name in a seperate column of the table . (My file has only one column)
I used getMetadata and Copydata activity but still it is not working . When i do the mapping with dynamic content it looks as below
Thanks,
Solved! Go to Solution.
Hi @PBILover,
Please use the script function
@{concat('INSERT INTO MetaData VALUES (GETDATE(), ''', variables('Path'), ''')')}
If this post helps, then please consider Accept it as a solution to help the other members find it more quickly.
Thank you.
It works
Thanks for the reply @v-saisrao-msft : I tried to get the filename in a variable, which worked fine but the mapping part is not working , when i used a mapping->add mapping and assign any dynamic content it is turning as shown in above screenshot. I dont see 2 columns .
Hi @PBILover,
Please use the script function
@{concat('INSERT INTO MetaData VALUES (GETDATE(), ''', variables('Path'), ''')')}
If this post helps, then please consider Accept it as a solution to help the other members find it more quickly.
Thank you.
Hi @PBILover,
Thank you for reaching out to the Microsoft Fabric Forum Community.
Please use the set variable activity, store the metadata ( which is file name ) to a variabl and use this variable in copy data activity to insert data into a table.
Thank you.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Fabric update to learn about new features.
| User | Count |
|---|---|
| 15 | |
| 8 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 31 | |
| 14 | |
| 5 | |
| 5 | |
| 3 |