As already discussed in the Creating a new number sequence recipe in Chapter 1, Processing Data, number sequences are widely used throughout the system as a part of the standard application. Dynamics 365 for Finance and Operations also provides a special number sequence handler class to be used in forms. It is called NumberSeqFormHandler and its purpose is to simplify the usage of record numbering on the user interface. Some of the standard Dynamics 365 for Finance and Operations forms, such as Customers or Vendors, already have this feature implemented.
This recipe shows you how to use the number sequence handler class. Although in this demonstration we will use an existing form, the same approach will be applied when creating brand new forms.
For demonstration purposes, we will use the existing Customer groups form located in Accounts receivable...