Lab - Extend an EDT


Read this first - before you start the lab!


For this lab, you CANNOT sign in with your own credentials. Use the following steps to sign in to your lab environment with the correct credentials.

  1. Ensure that you are signed in to Microsoft Learn.

  2. Select Launch VM mode or Sign in to launch VM mode in this unit.

  3. In the Resources tab on the lab side bar, select the T icon next to Password in the MININT box, to have the administrator password for the Virtual Machine entered for you.

    Screenshot of the administrator password.

  4. Select Enter.

  5. Microsoft Edge will open automatically. Wait for it to navigate to the Sign in page for finance and operations.

  6. On the Microsoft Sign in page in finance and operations, insert your mouse cursor into the Username field.

  7. On the Resources tab of the lab side bar, below the Azure portal heading, select the T icon next to Username, then press Enter.

    Screenshot of the Username field and the Sign in dialog box that appears.

  8. Your mouse cursor will now be in the Password page.

  9. On the Resources tab of the lab side bar, below the Azure portal heading, select the T icon next to select Password, then press Enter.

    Screenshot of the Password field the Enter password dialog box that appears.

  10. Don't stay signed in, or store the password on the virtual machine.

  11. To see the lab instructions, select the Instructions tab on the lab side bar.

You can now begin your work on this lab.


The finance and operations apps developer has been asked by the Fleet Management company to change a number-entry field on the Customer page. The Agency location code field only accepts 12 digits, and the company needs to be able to enter 14 digits. Because the company doesn't need a new field, the developer will create an extension of the AgencyLocationCode EDT in Visual Studio.

Create a new project

  1. Minimize the Microsoft Edge window.
  2. Open Visual Studio.
  3. Select Yes in the Do you want to allow this app to make changes to your device? window.
  4. Select Continue without code at the bottom of the page to open Visual studio.
  5. To ensure the correct applications suite is referenced, select Extensions in the toolbar, and then select Dynamics 365.
  6. Select Model Management > Update model parameters
  7. Select the FleetManagement model from the Model name drop-down list.
  8. Select Next, then ensure ApplicationSuite is selected in the Select referenced packages drop-down list. Leave any other selections as is.
  9. Select Next three times.
  10. Open the File menu and select New > Project.
  11. Search for Finance Operations, select it, and then select Next.
  12. In the Configure your new project dialog box enter FleetManagementExtensionProject in the Project name field.
  13. Select Create.
  14. Select Dynamics 365 in the Extensions menu at the top of the page.
  15. Select Options.
  16. Under the Dynamics 365 node on the left pane, select Projects.
  17. Ensure the check boxes for Organize projects by element type and Synchronize database on build for newly created project are selected. If others are selected, just leave them as is.
  18. Select OK.

Extend the AgencyLocationCode EDT

  1. Select View in the ribbon to open the Application Explorer. In the search bar, in the Application Explorer window, expand the AOT node and then expand the Data Types node.
  2. In the Data types node, expand the Extended Data Types node.
  3. Select the AgencyLocationCode EDT.
  4. Right-click the AgencyLocationCode EDT and select Create extension. An element named AgencyLocationCode.FleetManagement will be added to your FleetManagementExtensionProject in Solution Explorer. We recommend that you rename the extension to avoid conflict with any extensions that are rolled out during application updates. For example, you should rename AgencyLocationCode.Extension to AgencyLocationCode.abcExtension. For demo purposes, you will keep the default name.
  5. Double-click the AgencyLocationCode.FleetManagement element in the Solution Explorer window to open it in the element designer window.
  6. With the AgencyLocationCode.FleetManagement main node selected, go to the Properties window and change the String size property to 14.
  7. Perform a build by right-clicking the project FleetManagementExtensionProject in the Solution Explorer window and then selecting Build.

Close the lab environment

  1. Select Done in the Instructions pane in the lab side bar.
  2. In the Lab is complete window, select Continue, and then select Leave to return to the next unit in the module.