How to do it...

To create the data entity, follow these steps:

  1. Before we start, we need to check that the table we are going to use has a natural key. We can either configure an alternate key, or simply choose a single key unique index as the table's primary key. Open the designer for the ConVMSVehicleTable table, and check that the Primary Key property is set to VehicleIdx.
  2. In the project, add a new item. Within the Add New Item dialog, select Data Model from the left-hand list, and then Data Entity from the right.
  3. Enter ConVMSVehicleTableEntity as Name and press Add.
  4. We will then get a Data Entity Wizard dialog and select ConVMSVehicleTable in the Primary datasource drop-down list.
As you scroll down, the drop-down list can resize, causing ...

Get Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.