December 5, 2025

How to Map Custom Field Values from Product to Quote Line in Salesforce Revenue Cloud

Jean-Michel Tremblay

Salesforce Consultant

Introduction

One of the most common requirements in Salesforce Revenue Cloud implementations is carrying custom field values from your Product catalog down to Quote Line Items. Whether itโ€™s a pricing method, product category, or any other custom attribute, you need these values available on the quote line for reporting, pricing procedures, or downstream processes.

In this guide, Iโ€™ll walk you through the complete setup for mapping a custom field from Product to Quote Line Item using Context Definitions and cross-context mappings.


The Challenge

When a user browses your product catalog and adds a product to a quote, how do you ensure custom field values automatically populate on the Quote Line Item?

Revenue Cloud doesnโ€™t automatically transfer custom fields between objects. Instead, it usesย Context Definitionsย as an intermediary layerโ€”a bridge between Salesforce objects and the Revenue Cloud engine.

For our example, weโ€™ll use a picklist field calledย Pricing_Method__cย with values:

  • Standard
  • Cost
  • Block

This field exists on the Product object, and we want it to automatically populate on the Quote Line Item when a product is added to a quote.


Prerequisites

Before starting, ensure you have:

  • A Revenue Cloud-enabled Salesforce org (Enterprise, Unlimited, or Developer Edition)
  • Admin access to modify Context Definitions
  • The custom field created on bothย Product2ย andย QuoteLineItemย objects
  • An active Product Discovery (Browse Products) context definition
  • An active Sales Transaction context definition

Understanding the Architecture

Revenue Cloud uses two key context definitions for this flow:

Product Discovery Context

  • Used when users browse and add products to a quote
  • Weโ€™ll create a customย Productย node here to hold our custom field attributes

Sales Transaction Context

  • Used when building and managing the quote
  • Contains theย SalesTransactionItemย node that maps to Quote Line Item

The Data Flow

Product (Salesforce Object)
    โ†“ Object Mapping
Product Discovery Context (Product Node)
    โ†“ Cross-Context Mapping
Sales Transaction Context (SalesTransactionItem Node)
    โ†“ Object Mapping
Quote Line Item (Salesforce Object)

Context Definitions act as the bridge between Salesforce objects and the Revenue Cloud engine. Data flows through these contexts via mappings that you configure.


Step-by-Step Guide

Step 1: Create the Custom Fields

If you havenโ€™t already, create your custom field on both objects:

  1. Navigate toย Setup โ†’ Object Manager โ†’ Product โ†’ Fields & Relationships
  2. Create a new picklist field calledย Pricing_Method__cย with values: Standard, Cost, Block
  3. Repeat forย Quote Line Itemย object

Note:ย The field API names should match on both objects to keep things simple, though this isnโ€™t strictly required.


Step 2: Modify the Product Discovery Context Definition

Navigate to your Product Discovery context definition:

  1. Go toย Setup โ†’ Context Definitions
  2. Click theย Custom Definitionsย tab
  3. Find and open your active Product Discovery context definition (e.g., โ€œBrowse Products Context Definitionโ€)
  4. Clickย Edit

Create a New Product Node

  1. Clickย Nextย to get to the Structure page
  2. Locate theย Categoryย node in the structure
  3. Click on the Category node and selectย Add Child Node
  4. Name the new node:ย Productย (it will automatically get theย __cย suffix)
  5. Clickย Next

Add the Attribute

  1. On the Edit Attributes page, select your newย Productย node on the left
  2. Clickย Add Attribute
  3. Configure the attribute:
    • Name:ย PriceMethodย (or match your field name)
    • Type:ย Input/Output
    • Data Type:ย Picklist
  4. Clickย Next

Add the Tag

  1. On the Attribute Tags page, expand yourย Productย node
  2. Find your newย PriceMethodย attribute
  3. Clickย Add Tag
  4. Enter the tag value (use the same name as the attribute for simplicity):ย PriceMethod
  5. Clickย Done
  6. Clickย Save

Step 3: Configure the Product Discovery Mapping

Now we need to map the Salesforce Product object to our new context node:

  1. In your Product Discovery context definition, go to theย Map Dataย tab
  2. Find the activeย Product Discovery Mappingย record
  3. Click the dropdown arrow and selectย Edit S Object Mapping
  4. In the popup, clickย Map

Add the Product Object

  1. On the mapping page, click theย +ย (plus) icon in the top right
  2. Search for and select theย Productย object
  3. Clickย Done

Map the Node and Field

  1. On the left side (Context), select yourย Productย node
  2. On the right side (Salesforce Objects), select theย Productย object
  3. This maps the node to the object
  4. Expand theย Unmapped Fieldsย section on both sides
  5. Selectย PriceMethodย on the left
  6. Selectย Pricing_Method__cย on the right
  7. Clickย Save and Publish

Step 4: Modify the Sales Transaction Context Definition

Navigate to your Sales Transaction context definition:

  1. Go toย Setup โ†’ Context Definitions
  2. Click theย Custom Definitionsย tab
  3. Find and open your active Sales Transaction context definition
  4. Clickย Edit

Add the Attribute

  1. Clickย Nextย to skip the standard data page (no changes needed)
  2. On the Edit Attributes page, selectย SalesTransactionItemย on the left
  3. Clickย Add Attribute
  4. Configure the attribute:
    • Name:ย PriceMethod
    • Type:ย Input/Output
    • Data Type:ย Picklist
  5. Clickย Next

Add the Tag

  1. On the Attribute Tags page, expandย SalesTransactionItem
  2. Find your newย PriceMethodย attribute
  3. Clickย Add Tag
  4. Enter the tag value:ย PriceMethod
  5. Clickย Done
  6. Clickย Save

Step 5: Configure the Quote Entities Mapping

Map the Sales Transaction context to the Quote Line Item object:

  1. In your Sales Transaction context definition, go to theย Map Dataย tab
  2. Find theย Quote Entities Mappingย record
  3. Click the dropdown arrow and selectย Edit S Object Mapping
  4. Clickย Map

Map the Field

  1. On the left side, expandย SalesTransactionItemย and findย PriceMethodย in the Unmapped section
  2. On the right side, expandย QuoteLineItemย and findย Pricing_Method__cย in the Unmapped section
  3. Select both fields to create the mapping
  4. Clickย Save and Publish

Step 6: Configure the Cross-Context Mapping

This is the critical step that links the Product Discovery context to the Sales Transaction context:

  1. In your Sales Transaction context definition, go to theย Map Dataย tab
  2. Find theย Product Discovery Context Mappingย record
  3. Click the dropdown arrow and selectย Edit S Object Mapping
  4. Clickย Map

Add the Data Source

  1. On the mapping page, youโ€™ll see the Sales Transaction context on the left and nothing on the right
  2. Clickย Add Data Source
  3. Selectย Context Definition Objectsย (not Salesforce Objects)
  4. Choose your active Product Discovery context definition (e.g., โ€œBrowse Products Context Definitionโ€)
  5. Clickย Done

Map the Nodes

  1. On the left side, selectย SalesTransactionItem
  2. On the right side, select yourย Productย node
  3. This maps the nodes together

Map the Fields

  1. Expand the Unmapped Fields on both sides
  2. Selectย PriceMethodย under SalesTransactionItem on the left
  3. Selectย PriceMethodย under Product on the right
  4. Clickย Save and Publish

Testing the Configuration

Now letโ€™s verify everything works:

  1. Update a Product recordย with a value forย Pricing_Method__cย (e.g., โ€œBlockโ€)
  2. Create or open a Quote
  3. Browse the catalogย and add the product you updated
  4. Save the quote
  5. View the Quote Line Item recordย โ€“ theย Pricing_Method__cย field should now display โ€œBlockโ€

If the value appears on the Quote Line Item, your mapping is working correctly.


Troubleshooting

If the field value isnโ€™t mapping:

  • Verify all mappings are publishedย โ€“ Each mapping must be saved and published
  • Check the context definition is activeย โ€“ Only active context definitions are used
  • Confirm the field has a value on the Productย โ€“ Blank values wonโ€™t display anything
  • Review the cross-context mappingย โ€“ This is the most commonly missed step
  • Clear your browser cacheย and refresh the quote page

Whatโ€™s Next

This is part of a series on field mapping in Revenue Cloud:

  1. Part 1: Quote Line Item โ†’ Order Product
  2. Part 2: Product โ†’ Quote Line Item (this guide)
  3. Part 3: Order Product โ†’ Asset Action Source (coming soon)

By implementing all three mappings, you can carry custom field values through the entire quote-to-cash lifecycle.


Summary

Mapping custom fields in Revenue Cloud requires understanding how Context Definitions work as the intermediary layer between Salesforce objects. The key steps are:

  1. Create fields on both source and target objects
  2. Add a custom node (for Product Discovery) or use existing nodes (for Sales Transaction)
  3. Add attributes and tags to the context definitions
  4. Configure object mappings for each context
  5. Create the cross-context mapping to link the two contexts

Once configured, your custom field values will automatically flow from Product to Quote Line Item whenever users add products to quotes.


Have questions about Revenue Cloud context definitions? Drop a comment below or reach out on LinkedIn.

Free Assessment