With Build Your Own Promotion promotion template, marketing managers can create product
attribute-based promotion rules such as get 10% off on buying a 512-GB phone. Companies can
choose to either use Product Catalog Management or use their own configuration to create product
attributes. If a company decides to go ahead with their own product attribute configuration,
then the admin must create a custom object that relates products with their attributes. And map
the lookup fields of the custom object to attributes in their promotion context
definitions.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Unlimited,
and Developer Editions with Real-Time Offer Management |
Custom Object
Create a custom object that enables marketing managers to relate products with their
attributes. The custom object must have two lookup fields that are related to the Product object
and the Attribute Definition object.
Product Attribute Records
After the custom object is created, product
designers in your company create records in the custom object to relate products with their
attributes.
To use product attributes in a promotion, the API name of the attribute
definition must be in camel case. For example, enter the API name of the phone storage attribute
definition as phoneStorage.
Context Definition Customizations
In the context definitions created for promotions that plan to use Build Your Own Promotion templates, map
the Product and Attribute Definition lookup fields of the custom object to context
definition attributes.
If the context definition where you must add the product attribute mappings was created by
extending the standard CartDetailGetEligiblePromotion context definition, use the standard
MapCartLineValueLoyaltyField mapping to map:
- ProductObjectField from CartLineProductAttribute to the Product lookup field in the custom
object
- AttributeKey from CartLineProductAttribute to the Attribute Definition lookup field in the
custom object
Product Attribute-Based Promotion Rule Conditions
If an org has product attributes configured by using both Product Catalog Management and the
company's own configuration, marketing managers can select the company's configured product
attributes while create promotion rule eligibility conditions.