You are here:
Create a Promotion Mapping for Product Discovery and Map the Field
To show promotions based on channels on the Browse Catalogs page, map the custom field to your Product Discovery context definition.
Add an Attribute
- From Setup, find and select Context Definitions.
- Click Custom Definitions.
-
Click your extended Product Discovery context definition.
If you’re using the prebuilt context definition, extend your ProductDiscoveryContext context definition.
- Click Edit.
- Click Next until you reach the Edit Attributes page.
-
On the Edit Attributes page, add an attribute to the Account node.
- Click Account.
- For Name, enter Channel__c.
- For Type, select Input.
- For Data Type, select String.
- Click Next.
- On the Edit Attribute Tags page, click Generate All Tags, and then click Retain and Regenerate.
- Save your changes.
Map the Attribute
- Open your extended Product Discovery context definition.
- On the Map Data tab, click Add Mapping.
- Enter a name and description for context mapping, and click Next.
- Deselect options such that only Association is selected, and then click Map.
- Click Select Object.
- Click Context Definition.
- Click Proceed.
- Select your extended sales transaction context definition, and then click Confirm.
-
Map these nodes and attributes, and save your changes.
Product Discovery Context Sales Transaction Context Account Mapping Account SalesTransaction AccountId Account CurrencyIsoCode CurrencyIsoCode Channel__c ChannelId__c Category Mapping Category SalesTransactionItem CategoryId ProductCategory CategoryProduct Mapping CategoryProduct SalesTransactionItem ProductId Product CategoryId ProductCategory Note See the prebuilt ProductDiscoveryPromoMapping for reference. It contains all mappings except for the channel mapping. -
Click
to return to the context definition page.
-
Click
next to ProductDiscoveryMapping, and then select Edit SObject
Mapping.
- Select Mark as Default, and then click Map.
-
If you don’t see Account in the Connect Objects section, add it as a data source.
-
Click
.
- Click Salesforce Objects.
- Find and select Account.
-
Click
.
- Click Done.
-
Click
- Map Channel__c under Account in the context definition to in the Account object.
- Map id in context definition to Id in Account.
- Save your changes.
-
Click
to return to the context definition page.
- Activate your context definition.

