Loading
Prepare for Email to Become the Default Login ExperienceRead More
Media Cloud
Map the Custom Field in Product Discovery Context Definition

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.

  1. On the Custom Definitions tab, create a custom context definition by extending the CommsProductDiscoveryContext context definition.
  2. On the Edit Context Definitions page, click Next.
  3. On the Edit Structure page, click Next.
  4. On the Edit Attributes page, add these attributes to the Account node.
    1. Name: Channel__c
    2. Type: Input
    3. Data Type: String
  5. On the Edit Attribute Tags page, click Generate All Tags to map the necessary attributes.
  6. Save your changes.
  7. On the Map Data tab, click Add Mapping.
    1. Enter name and description for context mapping, and click Next.
    2. Make sure that only Association is selected and click Map.
    3. Click Select Data Source.
    4. On the Context Definitions Objects tab, select the extended SalesTransactionContext where you added the Channel tag, and click Done.
    5. Copy all the mappings from ProductDiscoveryPromoMapping to the extended context definition that you have created.
    6. Map the Channel__c attribute on Account node to ChannelId__c on SalesTransaction node.
    7. Save your changes.
  8. On the Map Data tab, for OrderProductDiscoveryMapping, click Edit SObject Mapping, and then click Map.
    1. On the ContextMapping page, map the attributes Id to Id, and Channel__c to Engagement_Channel_Type__c on the Account node.
    2. Save your mappings.
  9. On the Map Data tab, for QuoteProductDiscoveryMapping, click Edit SObject Mapping.
    1. Select Mark as Default, and click Map.
    2. On the ContextMapping page, map the attributes Id to Id, and Channel__c to Engagement_Channel_Type__c on the Account node.
    3. Save your mappings.
  10. Activate the context definition.
  11. From the App Launcher, find and select Pricing Procedures.
  12. Extend the Comms Discovery Pricing Procedure, and select the extended product discovery context definition that you’ve created for context definition.
  13. Save your changes.
  14. From the App Launcher, find and select Qualification Procedures.
  15. Extend the Comms Qualification Procedure, and select the extended product discovery context definition that you’ve created for context definition.
  16. Save your changes.
  17. From Setup, in the Quick Find box, enter Product Discovery, and select Product Discovery Settings.
    1. Select the extended product discovery context definition that you have created for select context definition.
    2. Select the promotion mapping that you have created for promotion context mapping.
    3. Select the extended product discovery pricing procedure for select pricing procedure.
    4. Select the extended product discovery qualification procedure for select qualification procedure.
    5. Save your changes.
 
Loading
Salesforce Help | Article