Forum Discussion
How to programatically interact with PBIR file?
- 11 months ago
Hi jaryszek ,
Yes the .pbir file mainly acts as a reference that helps Power BI locate and organize the report components such as visuals.json and other layout files.
It doesn’t contain the visuals themselves but points to where those files are stored inside the project. This structure makes it easier for developers to work programmatically with report definitions.
Thank you.
Hi jaryszek ,
Thanks for reaching out to the Microsoft fabric community forum.
The .pbir file is part of the new Power BI Project (.pbip) structure. It stores report details like visuals and layout in JSON format, so developers can now edit or script changes programmatically. When they say “programmatically modify the visual.json files”, it means you can use code or scripts to make changes directly in those files but currently, you still need to reopen the report to see the updates, as automatic refresh isn’t available yet.
Please go through the below document :
https://learn.microsoft.com/en-us/power-bi/developer/projects/projects-overview
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Best Regards,
Community Support Team
- jaryszek11 months ago
Super User
Hello,
thanks.
I have checked developers' approach and there is a way in .NET to just open this file and read, but there is not a lot of information so this file is used to localize visuals.json files.
Am I right? Or I am missing something?
Best,
Jacek- v-menakakota11 months ago
Community Support
Hi jaryszek ,
Yes the .pbir file mainly acts as a reference that helps Power BI locate and organize the report components such as visuals.json and other layout files.
It doesn’t contain the visuals themselves but points to where those files are stored inside the project. This structure makes it easier for developers to work programmatically with report definitions.
Thank you.- v-menakakota11 months ago
Community Support
Hi jaryszek ,
I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you.
Regards,
Microsoft Fabric Community Support Team.