NUserpreference table!
Among others, the UserPreference table contains the prefsection, prefkey, and prefvalue columns.
| Column | | Number allocation | Description |
|---|---|---|
| prefsection | System | used to store related information, like groups |
| prefkey | Counter-XXXXX-X-XXXXXXX | points to a specific place or item |
| prefvalue | XXXXXXX | used to actually store the next value |
The most interesting column is prefkey. It can be split up and defined as 4 parts separated by hyphens:
- **Counter-**XXXXX-X-XXXXXXX The first field part is appropriately named, it keeps count.
- Counter-XXXXX-X-XXXXXXX Defines what table number column the counter is used. For example, the contact number1 or number2 column. Each entity number column has a unique number that correlates to the column field ID. Mathematically, that is: ((table number * 256) + column index).
-
Counter-XXXXX-X-XXXXXXX
Only used for documents, and defines the template ID. Documents can have the same number allocation for all document templates or can have a different number allocation for each document template.
Represents the
doctmpl_id(document tempate table ID), otherwise, it is 0, for all document templates. - Counter-XXXXX -X-XXXXXXX Here is where the fun part begins. The forth and final field part is the travel number allocation series this entry belongs to. The lowest number you’ll find here is 250000.
Prefsection= SystemPrefKey= Counter-1285-0-250000Prefvalue= 250025