Codeunit 6301 Power BI Service Mgt.

Base Application, System.Integration.PowerBI
List17181920212223242526272829
Procedures2383216155112
Events3313

In 26 8 gone, 2 marked obsolete, 2 added

IsReportEnabled(ReportId: Guid; EnglishContext: Text): Booleangone after 25
gone
GetUnauthorizedErrorText(): Textgone after 25
gone
HasUploads(): Booleangone after 25
gone
GetData(var ExceptionMessage: Text; var ExceptionDetails: Text; Url: Text): Textgone after 25
gone
GetDataCatchErrors(var ExceptionMessage: Text; var ExceptionDetails: Text; var ErrorStatusCode: Integer; Url: Text): Textgone after 25
gone
FormatSpecialChars(Selection: Text): Textgone after 25
gone
SynchronizeReportsInBackground()18 to 25
gone
SetIsSynchronizing(IsSynchronizing: Boolean)18 to 25
gone
GetFactboxRatio(): Textnew in 20
marked Pending, tag 27.0: This function is now deprecated, and the client decides the addin ratio instead.
GetMainPageRatio(): Textnew in 20
marked Pending, tag 27.0: This function is now deprecated, and the client decides the addin ratio instead.
LogVisualLoaded(CorrelationId: Text; EmbedType: Enum "Power BI Element Type")new in 26
added
LogEmbedError(ErrorCategory: Text)new in 26
added

In 25 1 gone

IsPBIServiceAvailable(): Booleangone after 24
gone

In 24 7 gone, 1 added

CanHandleServiceCalls(): Booleangone after 23
gone
IsPowerBIDeploymentEnabled(): Booleangone after 23
gone
GetReportsForUserContext(var TempPowerBIReportBuffer: Record "Power BI Report Buffer" temporary; EnglishContext: Text[30])19 to 23
gone
internal GetEmbedAccessToken(): Text23 to 23
gone
InitializeAddinToken(PowerBIManagement: ControlAddIn PowerBIManagement)new in 24
added
[IntegrationEvent] OnGetReports(var TempPowerBIReportBuffer: Record "Power BI Report Buffer" temporary; var ExceptionMessage: Text; var ExceptionDetails: Text; EnglishContext: Text[30])gone after 23changed in 18
gone
[IntegrationEvent] OnUploadReports(var ApiRequestList: DotNet ImportReportRequestList; var ApiResponseList: DotNet ImportReportResponseList)gone after 23changed in 18
gone
[IntegrationEvent] OnRetryUploads(var ImportIdList: DotNet ImportedReportRequestList; var ApiResponseList: DotNet ImportedReportResponseList)gone after 23changed in 18
gone

In 23 8 marked obsolete, 1 gone, 7 added

IsReportEnabled(ReportId: Guid; EnglishContext: Text): Booleangone after 25
marked Pending, tag 23.0: A report is enabled for a context if there is a mathcing entry in table "Power BI Report Configuration". Substitute calls to IsReportEnabled(ReportId, Context) with PowerBIReportConfiguration.Get(UserSecurityId(), ReportId, Context).
GetReportPageSize(): Textgone after 22
gone
GetUnauthorizedErrorText(): Textgone after 25
marked Pending, tag 23.0: Error texts should be defined per extension. In other words, define your own text constants.
HasUploads(): Booleangone after 25
marked Pending, tag 23.0: Check "Power BI Report Uploads" table directly
GetData(var ExceptionMessage: Text; var ExceptionDetails: Text; Url: Text): Textgone after 25
marked Pending, tag 23.0: Use interface "Power BI Service Provider" and its implementations instead.
GetDataCatchErrors(var ExceptionMessage: Text; var ExceptionDetails: Text; var ErrorStatusCode: Integer; Url: Text): Textgone after 25
marked Pending, tag 23.0: Use interface "Power BI Service Provider" and its implementations instead.
FormatSpecialChars(Selection: Text): Textgone after 25
marked Pending, tag 23.0: Use platform capabilities to escape text in JSON strings instead. For example, text is escaped by platform when calling JsonArray.Add(Text).
SynchronizeReportsInBackground()18 to 25
marked Pending, tag 23.0: This function requires now a context parameter.
SetIsSynchronizing(IsSynchronizing: Boolean)18 to 25
marked Pending, tag 23.0: Information on whether the user is synchronizing reports is no longer kept in a dedicated table. Instead, a user is synchronizing if they have a pending job queue entry for codeunit Power BI Report Synchronizer. If you want to stop synchronization for a user, create a new Job Queue Entry for codeunit Power BI Report Synchronizer and set it to On Hold. If you want to restart synchronization, make sure there is a ready job queue entry for codeunit Power BI Report Synchronizer.
SynchronizeReportsInBackground(Context: Text[50])new in 23
added
AddReportVisualForContext(ReportId: Guid; ReportPageId: Text[200]; ReportVisualId: Text[200]; Context: Text[50])new in 23
added
AddReportForContext(ReportId: Guid; Context: Text[50])new in 23
added
internal GetPowerBiFeatureTelemetryName(): Textnew in 23
added
internal GetEmbedAccessToken(): Text23 to 23
added
internal CreateServiceProvider(var PowerBIServiceProvider: Interface "Power BI Service Provider")new in 23
added
[InternalEvent] OnServiceProviderCreate(var PowerBIServiceProvider: Interface "Power BI Service Provider"; var Handled: Boolean)new in 23
added

In 22 5 gone, 1 marked obsolete

GetReports(var TempPowerBIReportBuffer: Record "Power BI Report Buffer" temporary; var ExceptionMessage: Text; var ExceptionDetails: Text; EnglishContext: Text[30])gone after 21
gone
GetReportsForUserContext(var TempPowerBIReportBuffer: Record "Power BI Report Buffer" temporary; var ExceptionMessage: Text; var ExceptionDetails: Text; EnglishContext: Text[30])gone after 21
gone
GetPowerBIUrl(): Textgone after 21
gone
IsPBIServiceAvailable(): Booleangone after 24
marked Pending, tag 22.0: Power BI service status is no longer cached.
GetFactboxFilterFromID(PageId: Text): Textgone after 21
gone
UpdateEmbedUrlCache(var TempPowerBIReportBuffer: Record "Power BI Report Buffer" temporary; EnglishContext: Text)gone after 21
gone

In 21 18 gone, 6 marked obsolete

CheckForPowerBILicense(): Booleangone after 20
gone
UploadDefaultReportInBackground()gone after 20
gone
UploadDefaultReport()gone after 20
gone
RetryUnfinishedReportsInBackground()gone after 20
gone
RetryAllPartialReportUploads()gone after 20
gone
SelectDefaultReports()gone after 20
gone
DeleteDefaultReportsInBackground()gone after 20
gone
DeleteMarkedDefaultReports()gone after 20
gone
UserNeedsToDeployReports(Context: Text[50]): Booleangone after 20
gone
UserNeedsToRetryUploads(): Booleangone after 20
gone
UserNeedsToDeleteReports(): Booleangone after 20
gone
IsUserDeployingReports(): Booleangone after 20
gone
IsUserRetryingUploads(): Booleangone after 20
gone
IsUserDeletingReports(): Booleangone after 20
gone
SetIsDeployingReports(IsDeploying: Boolean)gone after 20
gone
SetIsRetryingUploads(IsRetrying: Boolean)gone after 20
gone
SetIsDeletingReports(IsDeleting: Boolean)gone after 20
gone
CanHandleServiceCalls(): Booleangone after 23
marked Pending, tag 21.0: Disabling the integration through AzureADMgtSetup has been discontinued. Remove permissions from single users instead.
IsPowerBIDeploymentEnabled(): Booleangone after 23
marked Pending, tag 21.0: Global switch for Power BI report deployment is no longer supported.
GetIsDeployingReports(): Booleangone after 20
gone
GetReportsForUserContext(var TempPowerBIReportBuffer: Record "Power BI Report Buffer" temporary; EnglishContext: Text[30])19 to 23
marked Pending, tag 21.0: Use physical table PowerBIReportConfiguration instead of temporary table TempPowerBIReportBuffer.
[IntegrationEvent] OnGetReports(var TempPowerBIReportBuffer: Record "Power BI Report Buffer" temporary; var ExceptionMessage: Text; var ExceptionDetails: Text; EnglishContext: Text[30])gone after 23changed in 18
marked Pending, tag 21.0: Events to override the Power BI integration behavior are no longer supported.
[IntegrationEvent] OnUploadReports(var ApiRequestList: DotNet ImportReportRequestList; var ApiResponseList: DotNet ImportReportResponseList)gone after 23changed in 18
marked Pending, tag 21.0: Events to override the Power BI integration behavior are no longer supported.
[IntegrationEvent] OnRetryUploads(var ImportIdList: DotNet ImportedReportRequestList; var ApiResponseList: DotNet ImportedReportResponseList)gone after 23changed in 18
marked Pending, tag 21.0: Events to override the Power BI integration behavior are no longer supported.

In 20 1 marked obsolete, 2 added

GetReportPageSize(): Textgone after 22
marked Pending, tag 20.0: Use GetFactboxRatio or GetMainPageRatio instead.
GetFactboxRatio(): Textnew in 20
added
GetMainPageRatio(): Textnew in 20
added

In 19 5 marked obsolete, 2 gone, 1 added

GetReports(var TempPowerBIReportBuffer: Record "Power BI Report Buffer" temporary; var ExceptionMessage: Text; var ExceptionDetails: Text; EnglishContext: Text[30])gone after 21
marked Pending, tag 19.0: Use GetReportsAndWorkspaces in codeunit "Power BI Workspace Mgt." instead.
GetReportsForUserContext(var TempPowerBIReportBuffer: Record "Power BI Report Buffer" temporary; var ExceptionMessage: Text; var ExceptionDetails: Text; EnglishContext: Text[30])gone after 21
marked Pending, tag 19.0: Use the GetReportsForUserContext without the ExceptionMessage and ExceptionDetails parameters.
GetPowerBIUrl(): Textgone after 21
marked Pending, tag 19.0: Use the function GetLicenseUrl of codeunit 6324 "Power BI Url Mgt" instead.
LogException(var ExceptionMessage: Text; var ExceptionDetails: Text)gone after 18
gone
LogMessage(Message: Text)gone after 18
gone
GetFactboxFilterFromID(PageId: Text): Textgone after 21
marked Pending, tag 19.0: Hardcoded name filtering for reports is deprecated. The user can search reports with the builtin search function in the page.
UpdateEmbedUrlCache(var TempPowerBIReportBuffer: Record "Power BI Report Buffer" temporary; EnglishContext: Text)gone after 21
marked Pending, tag 19.0: This function was used to update old records just-in-time, and is no longer needed.
GetReportsForUserContext(var TempPowerBIReportBuffer: Record "Power BI Report Buffer" temporary; EnglishContext: Text[30])19 to 23
added

In 18 18 marked obsolete, 5 added, 3 changed

CheckForPowerBILicense(): Booleangone after 20
marked Pending, tag 18.0: License check is no longer performed as a background task. Use CheckForPowerBILicenseInForeground instead.
UploadDefaultReportInBackground()gone after 20
marked Pending, tag 18.0: Use SynchronizeReportsInBackground instead
UploadDefaultReport()gone after 20
marked Pending, tag 18.0: Run codeunit "Power BI Report Synchronizer" instead
RetryUnfinishedReportsInBackground()gone after 20
marked Pending, tag 18.0: Use SynchronizeReportsInBackground instead
RetryAllPartialReportUploads()gone after 20
marked Pending, tag 18.0: Run codeunit "Power BI Report Synchronizer" instead
SelectDefaultReports()gone after 20
marked Pending, tag 18.0: Use PowerBIReportSynchronizer.SelectDefaultReports instead
DeleteDefaultReportsInBackground()gone after 20
marked Pending, tag 18.0: Use SynchronizeReportsInBackground instead
DeleteMarkedDefaultReports()gone after 20
marked Pending, tag 18.0: Run codeunit "Power BI Report Synchronizer" instead
UserNeedsToDeployReports(Context: Text[50]): Booleangone after 20
marked Pending, tag 18.0: Use PowerBIReportSynchronizer.UserNeedsToSynchronize instead
UserNeedsToRetryUploads(): Booleangone after 20
marked Pending, tag 18.0: Use PowerBIReportSynchronizer.UserNeedsToSynchronize instead
UserNeedsToDeleteReports(): Booleangone after 20
marked Pending, tag 18.0: Use PowerBIReportSynchronizer.UserNeedsToSynchronize instead
IsUserDeployingReports(): Booleangone after 20
marked Pending, tag 18.0: Use IsUserSynchronizingReports instead.
IsUserRetryingUploads(): Booleangone after 20
marked Pending, tag 18.0: Use IsUserSynchronizingReports instead.
IsUserDeletingReports(): Booleangone after 20
marked Pending, tag 18.0: Use IsUserSynchronizingReports instead.
SetIsDeployingReports(IsDeploying: Boolean)gone after 20
marked Pending, tag 18.0: Use SetIsSynchronizing instead.
SetIsRetryingUploads(IsRetrying: Boolean)gone after 20
marked Pending, tag 18.0: Use SetIsSynchronizing instead.
SetIsDeletingReports(IsDeleting: Boolean)gone after 20
marked Pending, tag 18.0: Use SetIsSynchronizing instead.
GetIsDeployingReports(): Booleangone after 20
marked Pending, tag 18.0: User IsUserSynchronizingReports instead
CheckForPowerBILicenseInForeground(): Booleannew in 18
added
SynchronizeReportsInBackground()18 to 25
added
IsUserSynchronizingReports(): Booleannew in 18
added
SetIsSynchronizing(IsSynchronizing: Boolean)18 to 25
added
GetJobQueueCategoryCode(): Code[10]new in 18
added
[IntegrationEvent] OnGetReports(var TempPowerBIReportBuffer: Record "Power BI Report Buffer" temporary; var ExceptionMessage: Text; var ExceptionDetails: Text; EnglishContext: Text[30])gone after 23changed in 18
changed, was [IntegrationEvent] OnGetReports(var TempPowerBIReportBuffer: Record "Power BI Report Buffer" temporary; var ExceptionMessage: Text; var ExceptionDetails: Text; EnglishContext: Text[30])
[IntegrationEvent] OnUploadReports(var ApiRequestList: DotNet ImportReportRequestList; var ApiResponseList: DotNet ImportReportResponseList)gone after 23changed in 18
changed, was [IntegrationEvent] OnUploadReports(var ApiRequestList: DotNet ImportReportRequestList; var ApiResponseList: DotNet ImportReportResponseList)
[IntegrationEvent] OnRetryUploads(var ImportIdList: DotNet ImportedReportRequestList; var ApiResponseList: DotNet ImportedReportResponseList)gone after 23changed in 18
changed, was [IntegrationEvent] OnRetryUploads(var ImportIdList: DotNet ImportedReportRequestList; var ApiResponseList: DotNet ImportedReportResponseList)