nerdexam
Microsoft

MB-500 · Question #356

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?

The correct answer is D. initializeReportControlOnWorkspace(powerBIConfiguration, reportParameters. Add analytics to workspaces by using Power BI Embedded PBIReportHelper.initializeReportControl method is used to embed a Power BI report (.pbix resource) in a form group control. initializeReportControl(WorkspaceName, FormGroup) [Will be deprecated in the future]…

Implement reporting

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?

Options

  • AinitializeReportControlV2(WorkspaceName, FormGroup)
  • BdeployOrUpdateReport(powerBIConfiguration, reportName, resourceName)
  • CgetPBIReportByResourceName(resourceName)
  • DinitializeReportControlOnWorkspace(powerBIConfiguration, reportParameters,

How the community answered

(37 responses)
  • A
    14% (5)
  • B
    3% (1)
  • C
    8% (3)
  • D
    76% (28)

Explanation

Add analytics to workspaces by using Power BI Embedded PBIReportHelper.initializeReportControl method is used to embed a Power BI report (.pbix resource) in a form group control. * initializeReportControl(WorkspaceName, FormGroup) [Will be deprecated in the future] * initializeReportControlV2(WorkspaceName, FormGroup) [Best] You should use initializeReportControlV2 because initializeReportControl will be deleted one day. However, as of today initializeReportControl just calls initializeReportControlV2 inside of it, So there is no difference. * initializeCustomReportControl( formGroupControl, reportCustomParams * addReportControl(formGroupControl) * deployOrUpdateReport(powerBIConfiguration, reportName, resourceName) * getPBIReportByResourceName(resourceName) * initializeReportControlInternal(powerBIConfiguration, reportParameters, reportControl, * initializeReportControlOnWorkspace(powerBIConfiguration, reportParameters, formGroupControl) * importAndStoreReport(powerBIConfiguration, resourceName, isUpate) https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/analytics/add-analytics-tab- https://community.dynamics.com/forums/thread/details/?threadid=e0e8684c-d95c-4191-b798-

Topics

#Power BI embedded#form initialization#report control#X++ API

Community Discussion

No community discussion yet for this question.

Full MB-500 Practice