Interface Power BI Uploadable Report, source in 29

Source29

src/Layers/W1/BaseApp/Modules/System/PowerBI/APIs/PowerBIUploadableReport.Interface.al42 lines, Copyright (c) Microsoft Corporation. MIT

namespace System.Integration.PowerBI;

interface "Power BI Uploadable Report"
{
    /// <summary>
    /// A stable key identifying this report, used to look up its tracking record.
    /// </summary>
    procedure GetReportKey(): Text[100];

    /// <summary>
    /// The human-readable name of the report.
    /// </summary>
    procedure GetReportName(): Text[100];

    /// <summary>
    /// Populates InStr with the PBIX file content for this report.
    /// </summary>
    procedure GetStream(var InStr: InStream);

    /// <summary>
    /// The version number of this report. Used to determine whether an existing deployment should be overwritten.
    /// </summary>
    procedure GetReportVersion(): Integer;

    /// <summary>
    /// Returns an upload tracker bound to this report's storage mechanism.
    /// </summary>
    procedure GetUploadTracker(var UploadTracker: Interface "Power BI Upload Tracker");

    /// <summary>
    /// Called after the report reaches DataRefreshed status.
    /// Perform any post-upload actions here (e.g. selecting the report for display in a context).
    /// The step runner transitions to Completed after this returns.
    /// </summary>
    procedure FinalizeUpload(var UploadTracker: Interface "Power BI Upload Tracker"; Context: Text[50]);

    /// <summary>
    /// Returns the Power BI dataset parameters (name → value) that this report expects to be updated after import.
    /// </summary>
    procedure GetDatasetParameters() Parameters: Dictionary of [Text, Text];
}