Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello all,
I'm trying to make use of the PBI Import in Group API but I'm having a hard time understanding how to get it to work.
If I'm importing a .pbix, what are the steps that I need to take to make use of the API? Do I need to encode the file? Does it have to be stored in a certain place?
I'm not finding any useful documentation on this, any help would be appreciated.
Chris
I thought the documentation is pretty straightforward. Where are you stuck?
https://docs.microsoft.com/en-us/rest/api/power-bi/imports
@lbendlin How do I call the file that I want to import? That's the part that I'm stuck on. Where does the file need to be stored? How do I call it in the body? Does it need to be encoded? How do I encode it if it does?
Assuming your pbix file is under 1GB:
To import a file, request Headers should include Content-Type: multipart/form-data with the file encoded as form data in the request body.
https://www.w3.org/TR/html401/interact/forms.html
For larger files yes, you need to prepare the temporary location first.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |