Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PBILover
Helper V
Helper V

get Metadata for Azure blob storage file and store into Lakehouse table

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 

PBILover_0-1750269383647.png

Thanks,

 

1 ACCEPTED SOLUTION

Hi @PBILover,

Please use the script function 
@{concat('INSERT INTO MetaData VALUES (GETDATE(), ''', variables('Path'), ''')')}

vsaisraomsft_0-1750425664997.png

If this post helps, then please consider Accept it as a solution to help the other members find it more quickly.

 

Thank you.

View solution in original post

4 REPLIES 4
PBILover
Helper V
Helper V

It works

PBILover
Helper V
Helper V

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'), ''')')}

vsaisraomsft_0-1750425664997.png

If this post helps, then please consider Accept it as a solution to help the other members find it more quickly.

 

Thank you.

v-saisrao-msft
Community Support
Community Support

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.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors