Skip to main content

Autonumber field type

Learn to create unique identifiers in Yeeflow with the Autonumber field - ideal for data integrity and record management.

The Autonumber field generates a business number for a record in a Data list. Combine its numeric sequence with an optional prefix and suffix to create references such as serial numbers, case numbers, or invoice numbers.

Why and When Do We Need to Create an Autonumber Field?

The creation of an Autonumber field is particularly beneficial in several scenarios:

  • Unique Identification: When each record in a Data list needs a unique identifier that can be used for tracking, referencing, or sorting.

  • Data Integrity: Apply a consistent numbering format without entering each business number manually.

  • Automation: In cases where manual numbering is impractical or prone to error, especially in large datasets.

  • Reference Purposes: When a record needs to be easily referred to or linked with other records or lists.

Using an Autonumber field is vital for workflows that require precision and uniqueness in record-keeping, such as inventory management, customer databases, ticketing systems, and more.

The original examples use SN-500 through SN-504 with prefix SN-; CASE-101-XY through CASE-105-XY with prefix CASE- and suffix -XY; and INV-2001-2024 through INV-2005-2024 with prefix INV- and suffix -2024.

Create an Autonumber Field

Creating an Autonumber field in Yeeflow is a straightforward process:

  1. Navigate to Your Data List:

    Open the Yeeflow application and locate the specific Data list where you want to add the Autonumber field.

  2. Access List Settings:

    Click on the more settings button at the top right corner. From the pop-up menu, select "List settings" to open a slide-in window from the right side.

    The List settings entry in the original data-list menu.
  3. Open Fields Management:

    In the slide-in window, click on the "Fields" option to access the Fields management window.

  4. Initiate New Field Creation:

    Click the "+ New Field" button located at the top-right corner to open the new field window.

Set Autonumber properties

  1. Select Field Type:

    From the dropdown list in the Field type section, choose "Autonumber".

  2. Name Your Field:

    Input a name for this field in the display name textbox.

  3. Set the Prefix:

    Input a static text prefix in the textbox (e.g., PRO-, SN-) or select a dynamic value as the prefix.

    To use dynamic values, click the "Switch" button to enter expression mode and then click "Expression" to use the expression editor. You can set text content here, like choosing a value from another field or using functions like now() for current date and time.

  4. Define Minimum Number of Digits:

    Set the minimum length of the numeric sequence. As the sequence increases, the number can become longer than this minimum.

  5. Choose Starting Number:

    Specify the starting number for the sequential part of your autonumber. For example, enter 1000 when that is the starting value you want.

  6. Set the Suffix:

    Similar to the prefix, input a static text suffix or select a dynamic value using the expression mode.

  7. Apply to record without autonumber:

    On first creation, select this option to generate numbers for existing records that have no autonumber. It is unselected by default.

  8. Save Your Field:

    After configuring all settings, click the "Save" button at the bottom of the window to finalize and create the Autonumber field.

The original field helpers limit the prefix and suffix to 20 characters each, with longer text truncated. Check the generated text when either part comes from an expression.

Field type set to Autonumber in the original New Field illustration.

In the original New Field example, the display name is Task Number, the minimum digits value is 3, the starting number is 100, the suffix is empty, and Apply to records without autonumber is unchecked. Its dynamic prefix includes T-, dateFormat, List Fields:Start Date, MM, and a hyphen. Use the expression editor to configure your own format and verify the generated prefix.

Note:

Re-editing the autonumber field will introduce another option: 'Regenerate autonumber for records with values', which is unselected by default. This option can be utilized when you wish to change the autonumber to a new order. You can select it to regenerate previous autonumbers or unselect it to keep the previous autonumbers.

Understanding Autonumber Behavior in Yeeflow After Creation

After successfully creating an Autonumber field in a Yeeflow Data list, it's crucial to understand how this feature behaves with existing and new records. Here's an overview of what to expect:

Behavior with Existing Records

  1. Automatic Generation:

    When first creating the field, choose Apply to records without autonumber if existing blank records should receive numbers. Keeping the option unselected leaves those existing values blank.

    When you apply this option, the generated numbers follow the saved prefix, suffix, starting number, and sequence settings.

    Original Task Number example column, showing T-Jan-120 down to T-Jan-113.

  2. Regenerate Numbers With New Order:

    Re-editing the autonumber field will introduce another option: 'Regenerate autonumber for records with values', which is unselected by default.

    This option can be utilized when you wish to change the autonumber to a new order. You can select it to regenerate previous autonumbers or unselect it to keep the previous autonumbers.

The original result illustration lists Task Number values from T-Jan-120 down to T-Jan-113. The image is a focused part of that help-center example.

Interaction with New Records

  1. New Item Creation:

    When you add a new item to the Data list, the Autonumber field automatically generates a number for this item.

    The number follows the sequential order established by the Autonumber field's settings.

  2. Visual Confirmation:

    You can visually verify the Autonumber for new items. Each new entry will display its unique Autonumber in the Data list.

  3. Continued Sequence:

    Numbers for new items continue the sequence according to the field’s saved settings.

    For a simple consecutive example, 1005 is followed by 1006. Verify the saved values on newly created test records.

For a small check in an empty test list, use prefix SN-, minimum digits 3, starting number 500, and an empty suffix. Save two new records, then check for SN-500 and SN-501 in the list. Review the field’s saved settings and the values it produced before using the format in business records.

Important Considerations

  • Non-Editable Nature: The generated business number is read-only in an individual record. Editing the field’s settings can explicitly regenerate existing numbers, as described above. Keep a copy of the current record IDs and numbers before using that option, then check any references to the old numbers.

  • Planning: Proper planning of the Autonumber field settings is crucial as these settings dictate the numbering sequence and format for all current and future records in the Data list.

  • Data Consistency: The Autonumber feature enhances data consistency and reliability, making it easier to manage and reference records in your Yeeflow application.


Conclusion

The Autonumber field in Yeeflow is an essential feature for creating unique identifiers in data lists. By following these steps, you can efficiently implement this feature, enhancing data organization and integrity in your Yeeflow application. Remember to carefully plan your prefix, suffix, and numbering sequence to suit your specific data management needs.

Did this answer your question?