How to use a Number Sequence in D365
-> number sequence allows the system to generate a unique value
Step1:
-> we need to identify which field on which table and form will use the number sequence.
Step2:
-> we need to create a class that extends NumberSeqApplicationModule.
-> This class will contain the code needed to add a row to the ‘Number sequence’ tab on a parameters form.
-> This ‘number sequence reference‘ allows the user to specify which ‘number sequence code‘ should be used for that field.
Step3:
-> we need to run a runnable class (job) to have the system process the class from step two.
-> This will create the ‘number sequence reference‘ row.
step4:
->we need set the ‘number sequence reference‘ to a ‘number sequence code‘, which defines the format of the number sequence.
Step5:
-> we need to override the ‘create‘ method on the data source on the form that will use the number sequence.
-> Then, add code to get a new number from the associated number sequence every time a new record is created.
***
->In order to develop a D365 number sequence,we must use a string field that has an Extended Data Type.
Comments
Post a Comment