Power BI · Arazzo Workflow

Power BI Import a PBIX and Poll Until Published

Version 1.0.0

Upload a PBIX file into a workspace, wait for the import to finish publishing, and list the resulting reports and datasets.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub AnalyticsBusiness IntelligenceDashboardsData AnalysisReportingVisualizationPower BIData VisualizationArazzoWorkflows

Provider

power-bi

Workflows

pbix-import-publish
Publish a PBIX into a workspace and wait for it to finish importing.
Uploads a PBIX file to a workspace, polls the import by id until publishing settles, and enumerates the reports and datasets that resulted.
4 steps inputs: datasetDisplayName, file, groupId, nameConflict outputs: datasets, importId, importState, reports
1
startImport
Upload the PBIX as multipart form data. The service accepts the file and returns an import record that begins life in the Publishing state.
2
pollImport
Read the started import by id and wait until its importState is Succeeded, retrying while it is still Publishing.
3
listPublishedDatasets
Enumerate the workspace datasets so the dataset the import created can be matched by name and handed to a refresh or rebind flow.
4
listPublishedReports
Enumerate the workspace reports so the report the import created can be matched by name and its embed URL captured.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Power BI Import a PBIX and Poll Until Published
  summary: Upload a PBIX file into a workspace, wait for the import to finish publishing, and list the resulting reports and datasets.
  description: >-
    The deployment pattern for shipping Power BI Desktop content into a
    workspace from CI. The import is a multipart upload that returns either 200
    or 202 with an import record in the Publishing state, and publishing then
    continues asynchronously. Completion is observed by reading the import by
    id until its importState is Succeeded, after which the reports and
    datasets the import produced are enumerated. Every step spells out its
    request inline so the flow can be read and executed without opening the
    underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-610.50
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-610.50
      capability_name: Analytics & BI Management
      spec: power-bi-datasets-api-openapi.yml
      confidence: 0.85
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: datasetsApi
  url: ../openapi/power-bi-datasets-api-openapi.yml
  type: openapi
- name: groupsApi
  url: ../openapi/power-bi-groups-api-openapi.yml
  type: openapi
- name: importsApi
  url: ../openapi/power-bi-imports-api-openapi.yml
  type: openapi
workflows:
- workflowId: pbix-import-publish
  summary: Publish a PBIX into a workspace and wait for it to finish importing.
  description: >-
    Uploads a PBIX file to a workspace, polls the import by id until
    publishing settles, and enumerates the reports and datasets that resulted.
  inputs:
    type: object
    required:
    - groupId
    - datasetDisplayName
    - file
    properties:
      groupId:
        type: string
        description: The identifier of the workspace to import into.
      datasetDisplayName:
        type: string
        description: The display name for the imported file, including the .pbix extension.
      file:
        type: string
        format: binary
        description: The PBIX file content to upload.
      nameConflict:
        type: string
        description: >-
          How to handle an existing item with the same name. One of Ignore,
          Abort, Overwrite, or CreateOrOverwrite.
        default: Abort
  steps:
  - stepId: startImport
    description: >-
      Upload the PBIX as multipart form data. The service accepts the file and
      returns an import record that begins life in the Publishing state.
    operationId: $sourceDescriptions.groupsApi.createImportInGroup
    parameters:
    - name: groupId
      in: path
      value: $inputs.groupId
    - name: datasetDisplayName
      in: query
      value: $inputs.datasetDisplayName
    - name: nameConflict
      in: query
      value: $inputs.nameConflict
    requestBody:
      contentType: multipart/form-data
      payload:
        file: $inputs.file
    successCriteria:
    - condition: $statusCode == 200 || $statusCode == 202
    outputs:
      importId: $response.body#/id
      importName: $response.body#/name
      importState: $response.body#/importState
  - stepId: pollImport
    description: >-
      Read the started import by id and wait until its importState is
      Succeeded, retrying while it is still Publishing.
    operationId: $sourceDescriptions.importsApi.Imports_GetImportInGroup
    parameters:
    - name: groupId
      in: path
      value: $inputs.groupId
    - name: importId
      in: path
      value: $steps.startImport.outputs.importId
    successCriteria:
    - condition: $statusCode == 200
    - condition: $response.body#/importState == 'Succeeded'
    onFailure:
    - name: importStillPublishing
      type: retry
      stepId: pollImport
      retryAfter: 15
      retryLimit: 40
      criteria:
      - condition: $response.body#/importState == 'Publishing'
    outputs:
      importState: $response.body#/importState
  - stepId: listPublishedDatasets
    description: >-
      Enumerate the workspace datasets so the dataset the import created can be
      matched by name and handed to a refresh or rebind flow.
    operationId: $sourceDescriptions.datasetsApi.getDatasetsInGroup
    parameters:
    - name: groupId
      in: path
      value: $inputs.groupId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      datasets: $response.body#/value
  - stepId: listPublishedReports
    description: >-
      Enumerate the workspace reports so the report the import created can be
      matched by name and its embed URL captured.
    operationId: $sourceDescriptions.groupsApi.getReportsInGroup
    parameters:
    - name: groupId
      in: path
      value: $inputs.groupId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      reports: $response.body#/value
  outputs:
    importId: $steps.startImport.outputs.importId
    importState: $steps.pollImport.outputs.importState
    datasets: $steps.listPublishedDatasets.outputs.datasets
    reports: $steps.listPublishedReports.outputs.reports

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/power-bi-pbix-import-publish-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.