How to do it...

To create the table handler class, follow these steps:

  1. Create a new class named ConVMSVehicleServiceTableType.
  1. We will construct the instance from ConVMSVehicleServiceTable and will, therefore, store this as a global variable on the class. Add this as follows:
class ConVMSVehicleServiceTableType{    ConVMSVehicleServiceTable serviceTable;}
  1. In order to construct the class, we will need to be able to set the value of serviceTable using an accessor method (a way to get and set internal variables), which is called a Parm method in SCM:
public ConVMSVehicleServiceTable ParmConVMSVehicleServiceTable(        ConVMSVehicleServiceTable _serviceTable = serviceTable){    serviceTable = _serviceTable;    return serviceTable;}
  1. Override the new ...

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.