1. Home
  2. System
  3. Number Sequences

Number Sequences

Number sequences are used to generate readable, unique identifiers for master data records and transaction records that require identifiers. These can be used for applications like serial numbering products.

Before you can create new records that require these identifiers, you must set up a number sequence and assign it to the process.

Adding a new Number Sequence

  • Navigate to ‘Number Sequences’
  • Using the ‘New Number Sequence’ fill the form with the details of your new number sequence.
  • For the ‘Format’ refer to the reference below.
  • Set the starting number for the sequence.

Changing the next number of a sequence

  • Using the ‘Restart Sequence’ action on the list of sequences you can select the next number of the sequence.

Format

The format options allow you to define how the identifier generated will look.

Make sure the you specify enough number characters for your sequence otherwise you will get errors.

You can use the # character to replace a number or the 0 character to replace a number but pad it with a zero if the number is too short.

When using sequences for identifiers that will be rendered as a barcode it is advisable to use a fixed length pattern.

FormatOutputNotes
2025-0000000002025-000047438This applied a prefix
000000000/ABC000047438/ABCThis applies a suffix
#########/ABC47438/ABCThis applies a suffix without zero padding
000000000000047438This will pad with zeros
#########47438This will not pad the output with zeros
###-###-###680-747-438You can create separators for the number elements.
000-000-000000-747-438As above but with zero padding for smaller numbers
#std47438stdA single # will output the whole number
\#1-##########1-47438Use \ for the next character to be interpreted as a literal rather than as a custom format specifier

Scriban

The format also support Scriban syntax, allowing you to dynamically generate formatted values using dates and incrementing numbers.

A parameter called number is passed into the model.
This represents the next value in the sequence.

A parameter called local_now is also passed into the model.
This represents the local date and time. The standard date.now  will return the UTC date and time.

You can combine this with date functions and formatting.

Example

{{ date.now.year }}-{{ number | math.format "D6" }}

Output

2026-000536

Explanation

  • date.now.year → Current year
  • number → Sequence number
  • "D6" → Pads the number to 6 digits with leading zeros

Custom Date Formats

You can format dates using the date.to_string function:

{{ local_now | date.to_string "%Y-%m-%d" }}

Example Output

2026-04-22

Date Format Specifiers

Use the following format parameters inside date.to_string:

FormatExampleDescription
%aThuShort weekday name
%AThursdayFull weekday name
%bSepShort month name
%BSeptemberFull month name
%d12Day of month (01–31)
%H22Hour (24-hour format, 00–23)
%I10Hour (12-hour format, 01–12)
%m09Month (01–12)
%pPMAM/PM
%Y2013Year (4 digits)
%y13Year (2 digits)
%U50Week number (Sunday as first day)
%W49Week number (Monday as first day)
Combining Date and Sequence

You can mix date formatting with number sequences:

text{{ date.now | date.to_string "%Y%m%d" }}-{{ number | math.format "D4" }}
Example Output
text20260422-0123
Updated on May 8, 2026

Related Articles