Adding a new field to the SalesTable form using an extension.

Adding a new field to the SalesTable form using an extension.

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 adding a new field to the SalesTable form.

You must use an extension to add a status field onto the form.

You need to create the extension in the Application Object Tree (AOT) and add the extension to the demoExtensions model.

Solution: Navigate to the user interface forms node for the SalesTable form and modify the form.

Does the solution meet the goal?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B.

B.

Instead navigate to the user interface forms section for the SalesTable form and create an extension.

Note: In Dynamics 365 Finance and Operations, the new fields will need to be added via a table extension.

Create the extensions on the SalesTable.

https://stoneridgesoftware.com/how-to-extend-sales-order-update-functionality-to-custom-fields-in-d365-finance-and-operations/

No, the provided solution does not meet the goal of adding a status field onto the SalesTable form using an extension in the Application Object Tree (AOT) and adding the extension to the demoExtensions model.

The provided solution suggests modifying the existing SalesTable form directly, which is not recommended in Dynamics 365 Finance and Operations development. Modifying standard forms directly may lead to issues during upgrades or updates, and it is not a best practice.

To achieve the goal, you should create an extension for the SalesTable form. Here are the steps to follow:

  1. Open the Application Object Tree (AOT) in Visual Studio.
  2. Create a new project or open an existing project where you want to add the extension.
  3. Right-click the project node, and select "Add > New Item."
  4. Select "Form extension" from the list of available items, and click "Add."
  5. In the "Properties" window, set the "Name" property to the name of the form you want to extend, which in this case is "SalesTable."
  6. Open the newly created form extension, and add the status field to the desired location on the form.
  7. Save and close the form extension.
  8. In the Solution Explorer, right-click the project node, and select "Build."
  9. Right-click the project node again, and select "Deploy."
  10. In the AOT, right-click the "demoExtensions" model node, and select "Add > Existing Element."
  11. Select the form extension you just created, and click "Add."
  12. Save and close the AOT.

After following these steps, you should see the status field on the SalesTable form when you open it in Dynamics 365 Finance and Operations.