Import a PBIX and Poll Until Published
A 4-step recipe with Power BI. We can help you get access.
Recipe · 4 steps
Import a PBIX and Poll Until Published
with Power BI · Analytics & BI Management
Publish a PBIX into a workspace and wait for it to finish importing.
- Upload the PBIX as multipart form data. The service accepts the file and returns an import record that begins life in the Publishing state.
- List the workspace's imports and wait until none remain in the Publishing state. This API exposes no get-import-by-id operation, so the workspace import list is the only available completion signal.
- Enumerate the workspace datasets so the dataset the import created can be matched by name and handed to a refresh or rebind flow.
- Enumerate the workspace reports so the report the import created can be matched by name and its embed URL captured.
What you'll need to have ready
- groupId: The identifier of the workspace to import into.
- datasetDisplayName: The display name for the imported file, including the .pbix extension.
- file: The PBIX file content to upload.
- nameConflict: How to handle an existing item with the same name. One of Ignore, Abort, Overwrite, or CreateOrOverwrite.
For your developer
Arazzo workflow power-bi:pbix-import-publish, 4 operations: createImportInGroup → getImportsInGroup → getDatasetsInGroup → getReportsInGroup. Specs on APIs.io.