Assigning number series to documents in Dynamics 365 Business Central can be complicated due to concurrency. Number series are designed for continuous numbering on transactional records, but this can cause locking. The new Business Foundation layer in Business Central provides two codeunits to handle number series, including a codeunit for batch requests. Number sequences can also be used, which generate numeric identifiers for data and records. Number sequences are extremely fast, especially when reserving a range of numbers. The only drawback is that errors in the transaction can result in gaps in the number series. Overall, working with NumberSequence in AL can provide many advantages.
Login now to access my digest by 365.Training