Newer Version Available
New Promotion Wizard Input Structure
Input Sample for New Promotion
Properties
| Property Name | Type | Description |
|---|---|---|
| Slogan | String |
Promotion slogan of the row where the user clicked to create a new promotion. |
| GroupText | String |
Group text of the row where the user clicked to create a new promotion. |
| initialDate | Number | Timestamp of the date on the calendar view the user clicked on in milliseconds. |
| AnchorAccount | Id |
Account of the row where the user clicked to create a new promotion. |
| PromotionTemplate | Id |
Promotion template of the row where the user clicked to create a promotion. |
| criterion_<X>_product__c | Id |
Product hierarchy of the row where the user clicked to create a promotion. |
| <x>__c | String |
Additional product grouping attributes present in the row where the user clicked to create a promotion. |
Input Sample for Copy Promotion
Properties
This method returns a list of items with the following properties:
| Property Name | Type | Description |
|---|---|---|
| promotionId | String |
ID of the promotion that is copied. |
Input Sample for Derive Promotion
Properties
This method returns a list of items with the following properties:
| Property Name | Type | Description |
|---|---|---|
| promotionId | String |
ID of the promotion that is derived.. |
Using MetadataWizard in custom components
MetadataWizard engine can be used in Aura components to render wizards in your custom Aura components.
- Component Markup
-
- Component Controller
-
| Parameter | Type | Required | Default Value | Description |
| metadata | Object | true* | Object representing the Wizard metadata (same format as on MetadataWizard Configuration Record). | |
| metadataName | String | true* | MetadataWizard configuration record name to extract the metadata from. | |
| input | Object | FALSE | {} | Metadata Wizard Input. This object can be accessed in expressions using the _input_ identifier. |
| stateBeforeSubmit | Boolean | FALSE | FALSE | Represents the state of the wizard input state between executions of the runWizard function. |
| modal | Boolean | FALSE | FALSE | If true, the wizard will e rendered as a modal. If false, the wizard will be rendered inline. |