How to do it...

To create the number sequence definition class, follow these steps:

  1. First, we will need to add an element to the NumberSeqModule base enum; so, locate this enum, right-click on it, and choose Create extension.
  2. Rename the new base enum extension to NumberSeqModule.ConWHS.
  3. Open it in the designer and add a new element. Set the Name property to ConWHSVehicleManagement and the Label property to Vehicle management.
  4. Save and close the designer, and create a new class name: ConWHSNumberSeqModule.
  5. Change the declaration so that it extends NumberSeqApplicationModule and overrides the following methods so that they read as follows:
public NumberSeqModule numberSeqModule() {     return NumberSeqModule::ConWHSVehicleManagement; } /// ...

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.