Initializing an embedded Microsoft Power BI report - Exam MB-500

Initialize an embedded Microsoft Power BI report

Question

You are Dynamics 365 Finance developer.

You need to initialize an embedded Microsoft Power BI report.

Which code segment should you add to the form initialization method?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.

PBIReportHelper.initializeReportControl method is used to embed a Power BI report (.pbix resource) in a form group control.

PBIReportHelper::initializeReportControl('FMPBIWorkspaces', powerBIReportGroup); Reference: https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/analytics/add-analytics-tab-workspaces.

To initialize an embedded Microsoft Power BI report in Dynamics 365 Finance, we need to add code to the form initialization method.

Out of the provided code segments, the correct method to initialize an embedded Power BI report is option C: initializeCustomReportControl(resourceName, formGroupControl, reportCustomParams).

This method initializes a custom Power BI report control on a form group control, using the specified resource name and custom parameters. The method takes three parameters:

  1. resourceName: The name of the Power BI report resource.
  2. formGroupControl: The form group control where the report will be embedded.
  3. reportCustomParams: Optional custom parameters to pass to the report.

This method is specifically designed to initialize a custom Power BI report control, allowing us to pass any required parameters and set up the control on the form group.

Option A: initializeReportControlOnWorkspace(powerBIConfiguration, reportParameters, formGroupControl) is not a valid method in Dynamics 365 Finance.

Option B: importAndStorageReport(powerBIConfiguration, resourceName, isUpdate) is a method used to import and store a Power BI report. It is not used to initialize an embedded report.

Option D: addReportControl(formGroupControl) is also not a valid method in Dynamics 365 Finance.

Therefore, the correct answer is option C: initializeCustomReportControl(resourceName, formGroupControl, reportCustomParams).