Skip to content

Add "objects" parameters to PowerBiDatasetRefreshOperator #50529

Closed
@vincent-pauwels-al

Description

@vincent-pauwels-al

Description

Would be great to be able to refresh only specific tables/partitions with the powerbi dataset refresh operator

Args:
    objects (list(dict), optional): the list of refresh objects based on provided tables and partitions.If not specified, refresh the entire dataset. Ex: [{"table": "Customer", "partition": "Robert"}]
    refresh_type (str, optional):The type of refresh operation to perform.Common values are "full" for a complete refresh or "automatic" for an incremental refresh based on data source settings. Defaults to "full".
    commit_mode (str, optional): Defines how the refresh operation commits changes.Acceptable values include "transactional" and "partialBatch".Defaults to "transactional".

Then, pass the following args to the request:

pbi_args = {
"type": refresh_type,
"commitMode": commit_mode,
"objects": objects,
"applyRefreshPolicy": "false"
}

Use case/motivation

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions