You are a 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?
Click on the arrows to vote for the correct answer
A. B. C. D.B.
PBIReportHelper.initializeReportControl method is used to embed a Power BI report (.pbix resource) in a form group control.
https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/analytics/add-analytics-tab-workspaces?toc=%2Ffin-and-ops%2Ftoc.jsonTo initialize an embedded Microsoft Power BI report in Dynamics 365 Finance, you need to use the initializeReportControlOnWorkspace
method. Therefore, the correct answer is C.
Explanation:
A. addReportControl(formGroupControl)
- This method is not valid and does not exist in Dynamics 365 Finance. Therefore, it is not the correct answer.
B. initializeReportControl(WorkspaceName, FormGroup)
- This method is also not valid and does not exist in Dynamics 365 Finance. Therefore, it is not the correct answer.
C. initializeReportControlOnWorkspace(powerBIConfiguration, reportParameters, formGroupControl)
- This method initializes an embedded Microsoft Power BI report on a workspace in Dynamics 365 Finance. It requires three parameters:
powerBIConfiguration
: This parameter specifies the configuration information for the Power BI report, including the report URL and the authentication method to use.
reportParameters
: This parameter specifies any additional parameters that need to be passed to the report, such as filter criteria.
formGroupControl
: This parameter specifies the form group control where the report will be embedded.
D. deployOrUpdateReport(powerBIConfiguration, reportName, resourceName)
- This method is used to deploy or update a Power BI report in Dynamics 365 Finance. It requires three parameters:
powerBIConfiguration
: This parameter specifies the configuration information for the Power BI report, including the report URL and the authentication method to use.
reportName
: This parameter specifies the name of the report.
resourceName
: This parameter specifies the name of the resource that the report will be deployed to.
In summary, the correct code segment to initialize an embedded Microsoft Power BI report in Dynamics 365 Finance is initializeReportControlOnWorkspace(powerBIConfiguration, reportParameters, formGroupControl)
.