Add Button for Running Reports in Dynamics 365 Finance

Run Report Button

Question

Note: This question is part of a series of questions that present the same scenario.

Each question in the series contains a unique solution that might meet the stated goals.

Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it.

As a result, these questions will not appear in the review screen.

You are developing a form for Dynamics 365 Finance.

You need to add a button that allows users to run a report.

Solution: Create an output menu item.

Add the output menu item to the form button and then link the report to the output menu item.

Does the solution meet the goal?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B.

B.

Instead create an action menu item.

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/user-interface/action-controls

The solution provided, which involves creating an output menu item, adding it to a form button, and linking a report to the output menu item, is a valid approach to add a button that allows users to run a report in Dynamics 365 Finance. Therefore, the answer is A. Yes.

Here is a more detailed explanation of the steps involved in the solution:

  1. Create an output menu item: An output menu item represents a report or a document that can be generated by Dynamics 365 Finance. To create an output menu item, you need to go to the AOT (Application Object Tree) in the Visual Studio development environment and create a new output menu item object.

  2. Add the output menu item to the form button: Once you have created the output menu item, you can add it to a form button by modifying the properties of the button control in the form designer. You need to set the MenuItemType property of the button control to Output, and then set the MenuItemName property to the name of the output menu item that you created in step 1.

  3. Link the report to the output menu item: After you have added the output menu item to the form button, you need to link a report to the output menu item. To do this, you need to specify the name of the report in the ReportName property of the output menu item object that you created in step 1.

By following these steps, you can create a button that allows users to run a report in Dynamics 365 Finance. When the user clicks on the button, the report specified in the output menu item will be generated and displayed to the user.