How to do it...

To create the data entity, follow these steps:

  1. 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.
  2. Enter ConWHSVehicleTableEntity as Name and press Add.
  3. We will then get a Data Entity Wizard dialog and select ConWHSVehicleTable in the Primary datasource drop-down list.
As you scroll down, the drop-down list can resize, causing an item to be selected by mistake, it is therefore easier to use the Page Up and Page Down keys to locate the table.

The Entity category is not correct by default; use the following table to select the correct category:

Table group

Entity category

Main, Group

Master

Worksheet (all types)

Get Extending Microsoft Dynamics 365 for Operations Cookbook 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.