The app lays the segments out from left to right and fills each one according to its type. A definition contains only the segments you add to it, in the order you choose. A definition can be as simple as a single counter, a prefix and a counter, or it can also include the device identifier and more.
Required Editions
| Available in: Lightning Experience in Professional, Enterprise, and Unlimited Editions that have Consumer Goods Cloud enabled. |
Consider the number OEw1010000148, created on a device whose device identifier, called the LU, is 101w. A definition with these three segments produces it.
| Sort order | Segment type | Pre-delimiter | Length | Produces |
|---|---|---|---|---|
| 1 | Init counter | OE | 3 | OEw |
| 2 | Device (LU) | None | 3 | 101 |
| 3 | Counter | None | 7 | 0000148 |
Laid out in order, the segments form OEw + 101 + 0000148, which is OEw1010000148. Notice two things:
- The fixed prefix OE isn't a segment of its own. It's the pre-delimiter of the first segment. The rest of that segment, w, is the init-counter value, and the app fits the whole segment to its configured length of 3.
- The device identifier 101w spreads across the first two segments. Its 4th character, w, feeds the Init counter segment, and its first 3 characters, 101, feed the Device (LU) segment.
The one part that changes from one number to the next is the counter. Each time the device assigns a new system number, the counter advances by one, and the prefix and device identifier stay the same.
To generate unique offline numbers and keep device counters synchronized with Salesforce, configure system number definitions, define their segments, set up tracked objects, and set up regular sync habits for field users.
- Create a System Number
Number definitions automatically generate unique identifiers for business objects, such as new order entries or promotions. - Add System Number Segments
Define individual segments, such as prefixes, counters, and device identifiers, to construct the system number format. - Configure System Numbering Behavior and Timing
Configure when and how the app assigns system numbers to records, such as orders or invoices. - Keep System Numbers in Sync
Set up tracked objects and follow sync habits that keep device counters current and prevent duplicate record numbers during fresh installs or device restores.