Promotion Wizard Input Structure

This document describes the input that SmartUI generates when initializing the new metadata-driven promotion wizard. SmartUI extracts information on where the user clicked when launching the wizard in order to provide as much information as possible to the wizard so it can be used to provide sensible defaults.

This method returns a list of items with the following properties:

Property NameTypeDescription
SloganStringPromotion slogan of the row where the user clicked to create a new promotion.
GroupTextStringGroup text of the row where the user clicked to create a new promotion.
initialDateNumberTimestamp of the date on the calendar view the user clicked on in milliseconds.
AnchorAccountIdAccount of the row where the user clicked to create a new promotion.
PromotionTemplateIdPromotion template of the row where the user clicked to create a promotion.
criterion_<X>_product__cIdProduct hierarchy of the row where the user clicked to create a promotion.
<x>__cStringAdditional product grouping attributes present in the row where the user clicked to create a promotion.

This method returns a list of items with the following properties:

Property NameTypeDescription
promotionIdStringID of the promotion that is copied.

This method returns a list of items with the following properties:

Property NameTypeDescription
promotionIdStringID of the promotion that is derived..

MetadataWizard engine can be used in Aura components to render wizards in your custom Aura components.

Component Markup

Component Controller

ParameterTypeRequiredDefault ValueDescription 
metadataObjecttrue* Object representing the Wizard metadata (same format as on MetadataWizard Configuration Record). 
metadataNameStringtrue* MetadataWizard configuration record name to extract the metadata from. 
inputObjectFALSE{}Metadata Wizard Input. This object can be accessed in expressions using the _input_ identifier. 
stateBeforeSubmitBooleanFALSEFALSERepresents the state of the wizard input state between executions of the runWizard function. 
modalBooleanFALSEFALSEIf true, the wizard will e rendered as a modal. If false, the wizard will be rendered inline.