Forum Discussion
How to save a semantic model on direct lake into a git folder?
- 3 months ago
You can use the Fabric APIs to Get Item Definitition, this should give the pibp format in base64 which you can convert or save. You can also use the Fabric VS code extension to do this, which will call the API and decode for you.
Hello jaryszek ,
Based on this documentation https://learn.microsoft.com/en-us/fabric/fundamentals/direct-lake-power-bi-desktop#power-bi-project-pbip open semantic model for live editing in pbi desktop by connecting to it from the Fabric workspace. After that while you are editing go to file - export - power bi project (pbip). This will give you a local copy of of the semantic model and report metadata. And it enables the save button for local metadata. The exported folder will contain your model definiton files in TMDL format. Then you can use Git as the central metadata repo.