Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I have a get metadata activty wicth return this metadata :
{ "lastModified": "2024-12-17T09:10:43Z", "itemName": "Ventes_allemagne.csv", "executionDuration": 1 }
I need to make a table in my lakehouse with two columns : itemName and lastModified with the values from my metadata.
How should i do this ?
Thank you
Solved! Go to Solution.
Hi @BenLyon
You can import the CSV file into Lakehouse, convert it into a table, and then use the above method.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Toi69___
In the data pipeline, add a new Copy Data activity.
Get Metadata
Copy data
Run
You can get the newmetadata table in lakehouse.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello
Great example but in my case i am looking for the metadata from a csv file, not a table.
Do you think you could modified your answer in this case ?
Thank so much
Hi @BenLyon
You can import the CSV file into Lakehouse, convert it into a table, and then use the above method.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Possibly not the wisest option but assuming your Get Metadata is returning a single object (which I think it has to to return 'last modified')
1 - Create a notebook that accepts a couple of parameters - item name and last modified - into variables
2 - Set the pipeline to pass these two fields from the Get metadata step into parameters of a Notebook activity
3 - Create a dataframe containing these two variables
4 - Write to a table in Append mode.
The code I used to test - first cell is a parameter cell
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
User | Count |
---|---|
7 | |
3 | |
2 | |
2 | |
1 |
User | Count |
---|---|
10 | |
9 | |
5 | |
3 | |
3 |