You are here:
System Numbers in Retail Execution
Configure system number definitions so the mobile app can assign unique, human-readable identifiers, such as order, invoice, and tour numbers, to the records that field users create offline.
Configure system number definitions so the mobile app can assign unique, human-readable identifiers, such as order, invoice, and tour numbers, to the records that field users create offline.
| Available in: Lightning Experience in Professional, Enterprise, and Unlimited Editions that have Consumer Goods Cloud enabled. |
Two properties make system numbers special. First, the device generates them fully offline, so field users can create and number records with no connectivity. The server doesn't assign numbers later. Second, different devices never collide. Each device embeds its own identifier in the number, so two devices that number records at the same time still produce different numbers, and each device counts its own records upward.
The app assembles a system number from ordered segments, such as a fixed prefix, the device identifier, and a running counter, based on a system number definition that you configure in Salesforce. Your configuration controls which segments appear.
A system number relies on these key objects.
cgcloud__System_Number__c): Defines the overall
template, sales org scope, active status, and fallback logic.cgcloud__System_Number_Segment__c): Defines
individual components, such as sort order, lengths, pre-delimiters and post-delimiters, and
counting systems.cgcloud__System_Number_Last__c): Tracks the
last used counter value per device and per number definition.Note: Uniqueness across sync sessions isn't automatic. Each device must upload its counter progress to the server. If a device advances its counter but doesn't sync that progress before you reinstall or restore the device, the device can resume from an older counter value and reissue numbers it already used, which creates duplicates.

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.