You are here:
Map the Custom Field in Product Discovery Context Definition
Select the channels customers must use to qualify for a promotion. You can assign multiple channels to a single promotion. To show channel-based promotions on the Browse Catalogs page, map the custom field to your product discovery context definition.
- On the Custom Definitions tab, create a custom context definition by extending the CommsProductDiscoveryContext context definition.
- On the Edit Context Definitions page, click Next.
- On the Edit Structure page, click Next.
-
On the Edit Attributes page, add these attributes to the Account node.
- Name: Channel__c
- Type: Input
- Data Type: String
- On the Edit Attribute Tags page, click Generate All Tags to map the necessary attributes.
- Save your changes.
-
On the Map Data tab, click Add Mapping.
- Enter name and description for context mapping, and click Next.
- Make sure that only Association is selected and click Map.
- Click Select Data Source.
- On the Context Definitions Objects tab, select the extended SalesTransactionContext where you added the Channel tag, and click Done.
- Copy all the mappings from ProductDiscoveryPromoMapping to the extended context definition that you have created.
- Map the Channel__c attribute on Account node to ChannelId__c on SalesTransaction node.
- Save your changes.
-
On the Map Data tab, for OrderProductDiscoveryMapping, click
Edit SObject Mapping, and then click Map.
- On the ContextMapping page, map the attributes Id to Id, and Channel__c to Engagement_Channel_Type__c on the Account node.
- Save your mappings.
-
On the Map Data tab, for QuoteProductDiscoveryMapping, click
Edit SObject Mapping.
- Select Mark as Default, and click Map.
- On the ContextMapping page, map the attributes Id to Id, and Channel__c to Engagement_Channel_Type__c on the Account node.
- Save your mappings.
- Activate the context definition.
- From the App Launcher, find and select Pricing Procedures.
- Extend the Comms Discovery Pricing Procedure, and select the extended product discovery context definition that you’ve created for context definition.
- Save your changes.
- From the App Launcher, find and select Qualification Procedures.
- Extend the Comms Qualification Procedure, and select the extended product discovery context definition that you’ve created for context definition.
- Save your changes.
-
From Setup, in the Quick Find box, enter Product Discovery, and
select Product Discovery Settings.
- Select the extended product discovery context definition that you have created for select context definition.
- Select the promotion mapping that you have created for promotion context mapping.
- Select the extended product discovery pricing procedure for select pricing procedure.
- Select the extended product discovery qualification procedure for select qualification procedure.
- Save your changes.
