Skip to content

SEQUENCENUMBER Function: sequencenumber

The SEQUENCENUMBER function generates a sequence of numbers based on user-defined parameters. This function is useful for generating unique identifiers, order numbers, or any sequential data required in automation workflows. It accepts three parameters, with the third one being optional. If the third parameter is not provided, the sequence starts from zero by default.

Steps to Configure:

  1. Add a new step in the Case at required index.
  2. Select Set a Variable Value from the Action dropdown.
  3. In the Element Key field, enter a variable name to store the generated sequence number (e.g., SequenceID).
  4. In the Parameter section, click Form and select Functions from the dropdown.
  5. Choose SEQUENCENUMBER from the list of functions.
  6. Provide the following parameters:
    • Reset (Boolean): Accepts true or false. If true, the sequence resets to the specified start value each time it is called. Default is false.
    • Number of Digits: Specifies the total number of digits in the generated sequence (e.g., 5).
    • Start Value (Optional): The starting number of the sequence (e.g., 100). If omitted, the sequence starts from 00000.
  7. Click Save.

Example Usage:

  • Example 1: Suppose a company wants to assign a five-digit order number, starting from 100. Each new order should receive a new number in sequence.

Configuration:

    • reset: false
    • noOfDigit: 5
    • sequenceNumber: 100
scrn-sequence-number-tabular-view
Tabular View
scrn-sequence-number-card-view
Card View

Output on execution: 00101 (First Employee ID)

Back To Top