How to do it...

Let's create the table handler class first, since we will need this in order to complete the form handler class. To use the SysExtension pattern, we will need at least two classes: the attribute class and the class that will be constructed using the pattern.

  1. To create the attribute class, choose to add a new item to the project, select the Code node, and then choose Class from the artifact list.
  2. Enter ConWHSVehicleServiceStatusAttribute in the Name field and press Add.
  3. Alter the class declaration to be as follows:
class ConWHSVehicleServiceStatusAttribute    extends SysAttribute    implements SysExtensionIAttribute { } 
  1. We will need to store the attribute we are handling as a variable in the class, so declare the service status ...

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.