Operate > IBM Management Center for WebSphere Commerce > Promotions tool > Work with promotions > Promotions
Advanced system-generated unique promotion codes
Advanced system-generated unique promotion codes are created by specifying an advanced pattern of characters.
Using this method to create promotion codes is considered complex compared to using Simple system-generated unique promotion codes. Therefore, it is recommended that you only use this creation method when the specific business requirements cannot be fulfilled using simple system-generated unique promotion codes.
The following inputs are required to generate advanced system-generated unique promotion codes:
The maximum number of possible unique promotion codes to generate is calculated and displayed for reference, based on the pattern input.
- Pattern
- An advanced pattern containing at least one set of generated characters, specified in brackets []. It can also contain fixed characters such as numeric, alphabetic, or alphanumeric characters.
- Number of unique promotion codes to generate
- The total number of generated promotion codes to create, based on the business needs.
Pattern syntax
Advanced system-generated unique promotion codes specified in brackets [] can take on the following values:
- Numeric characters
- D represents numeric characters in the pattern.
- Alphabetic characters
- A represents uppercase alphabetic characters in the pattern.
- a represents lowercase alphabetic characters in the pattern.
- M represents mixed-case alphabetic characters in the pattern.
- Alphanumeric characters
- X represents uppercase alphanumeric characters in the pattern.
- x represents lowercase alphanumeric characters in the pattern.
- N represents mixed-case alphanumeric characters in the pattern.
- Sequential characters
- S represents a sequence of characters in the pattern with the following notation:
- S+startingNumber/Increment.
Specify a starting number and increment value is optional, with the following behaviour:
- If both a starting number and increment are specified, the values are processed as a typical sequence.
For example, [SSSS+100/20] represents a sequence starting at 0100 and incrementing by 20.
- If no starting number or increment is specified, a starting number of 0 and an increment value of 1 is automatically assigned.
For example, [SSSS] represents a sequence starting at 0000 and incrementing by 1.
Sample output
Advanced system-generated unique promotion codes can contain any amount of fixed characters, generated characters, and sequences.
Where, for example, the unique promotion codes sample results are:
Sample advanced system-generated unique promotion codes
Code generation pattern Sample unique promotion codes IBM[XXX]EVENT IBM65BEVENT
IBMJK7EVENT
IBMXWTEVENTSUMMER-[DDDAA]-SPECIAL SUMMER-123AB-SPECIAL
SUMMER-551LM-SPECIAL
SUMMER-319PG-SPECIALWINTER2010[XX]-SALE WINTER201055-SALE
WINTER2010H9-SALE
WINTER2010MC-SALEIBM[DXSS] IBM5G00
IBM8P01
IBM2502IBM[SSSS+100/20] IBM0100
IBM0120
IBM0140
Related concepts