Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Map the Custom Field in Sales Transaction Context Definition

          Map the Custom Field in Sales Transaction Context Definition

          To show promotions based on channels from product configurator and Transaction Line Editor, map the custom field to your sales transaction context definition.

          Add an Attribute

          1. From Setup, find and select Context Definitions.
          2. On the Custom Definitions tab, click your extended SalesTransactionContext context definition, and then click Edit.
          3. Click Next until you reach the Edit Attributes page.
          4. On the Edit Attributes page, add the ChannelId__c attribute to the SalesTransaction node.
            1. Click SalesTransaction.
            2. Click Add Attributes.
            3. Enter the name as ChannelId__c.
            4. For Type, select Input.
            5. For Data Type, select String.
            6. Click Next.
            7. On the Edit Attribute Tags page, click Generate All Tags, and then click Retain and Regenerate.
            8. Save your changes.

          Map the Attribute

          1. Open QuoteEntitiesMapping.
            1. Click Context Definitions next to QuoteEntitiesMapping, and then select Edit SObject Mapping.
            2. Select Mark as Default, and then click Map.
            3. If you see the “The New Context Mapping UI Is Here!” window, click Proceed.
          2. Map the ChannelId attribute depending on whether you’ve turned on the Create Quotes Without a Related Opportunity setting on the Quote Settings page.
            • If you’ve turned on the setting, map ChannelId__C in SalesTransaction to Quote > QuoteAccount > Engagement_Channel_Type__c > Id.

              The QuoteEntitiesMapping section
              Note
              Note To learn how to use fields that have a lookup relationship, see Add Context Mapping.
            • If you haven’t turned on the setting, map ChannelId__C in SalesTransaction to Quote > Account > Engagement_Channel_Type__c > Id.

          3. Save your changes.
          4. Click Back to return to the context definition page.
          5. Open OrderEntitiesMapping.
            1. Click Context Definitions next to OrderEntitiesMapping, and then select Edit SObject Mapping.
            2. Click Map.
            3. If you see the “The New Context Mapping UI Is Here!” window, click Proceed.
          6. Map the ChannelId__C attribute in SalesTransaction to Order > Account > Engagement_Channel_Type__c > Id.
          7. Save your changes.
          8. Activate the context definition.
           
          Loading
          Salesforce Help | Article