Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |