How to do it...

In order to create a new Enum, follow these steps:

  1. Either right-click on the project (or any sub folder in the project) and choose Add New item....
Always try to use keyboard shortcuts, which are displayed next to the option. In this case, try Ctrl + Shift + A.
  1. This will open the Add New Item window. From the left-hand list, select Data Types, which is under the Dynamics 365 Items node.
  2. This will filter the available options in the right-hand list. From this list, choose Base Enum.
  3. Enter a name, prefixed appropriately. In this example, we are creating an enum to store the type of vehicle; so, we will enter ConVMSVehicleType as Name and click Add.
This should have created a folder called Base Enums or added the new Enum ...

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.