---
sourceDocument: Brazil Sales Customer Relationship Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/order-management

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Sales Customer Relationship Management

ft:clusterId :

    - omgmt

bundleId :

    - omgmt

workflow :

    - Customer and Industry


---

# The Picklist Extension Pricing enrichment

# The Picklist Extension Pricing enrichment {#ariaid-title1}

Release version: Brazil  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of The Picklist Extension Pricing enrichment

The Picklist Extension Pricing enrichment in ServiceNow CPQ allows dynamic adjustment of pricing for picklist extension fields based on factors such as geographic location.
This functionality enables customers to tailor product pricing in picklists according to variables like ZIP code, multipliers, or discounts, enhancing pricing accuracy and flexibility in quoting processes.
Show full answer Show less  

## Prerequisites

* Submit a support case through the ServiceNow Support portal to enable the enrichment in your environment, including a detailed use case.
* Ensure picklist extension fields have the "Enable for enrichment" toggle activated to be impacted by this pricing enrichment.
* The Enrichments tab will be accessible within the blueprint section of the ServiceNow CPQ Admin for configuration.

## How It Works

The enrichment uses scripting to process picklist options (pleRequest) for designated fields, retrieving pricing data from relevant tables or logic based on parameters like ZIP code and selected options. It supports complex pricing scenarios such as:

* ZIP code-dependent pricing adjustments
* Application of price multipliers or discounts
* Delta pricing and independent component pricing

The script iterates through picklist options, fetches base prices and multipliers from lookup tables, and sets updated prices dynamically in the picklist extension fields.

## Key Elements in Scripting

* **pleRequest.fieldVariableName**: The variable name of the picklist field being processed.
* **pleRequest.optionValue**: The option selected within the picklist field.
* **pleRequest.productId**: The identifier for the product in the picklist extension mapping.
* **pleRequest.price**: The price value assigned dynamically based on lookup results and calculations.

The scripting approach aligns with referencing other objects like ProductList, cfg, and cfgRequest, providing a consistent method to manipulate pricing data.

## Benefits for ServiceNow Customers

* Enables highly customizable and location-aware pricing strategies within CPQ picklist extensions.
* Supports complex pricing logic without manual price adjustments, improving accuracy and efficiency.
* Facilitates better alignment of pricing with customer-specific conditions such as geography or product configurations.

## Next Steps

To implement the Picklist Extension Pricing enrichment, customers should submit an enablement request via ServiceNow Support with their use case, activate enrichment on relevant picklist fields, and configure the enrichment scripts in the CPQ Admin blueprint. Reviewing provided demonstration scripts and examples can accelerate adoption and customization.  
Use the Picklist Extension Pricing enrichment to adjust pricing according to location or other factors.

The Picklist Extension Pricing enrichment can be used to dynamically change the pricing of Field Options in designated picklist extension fields.

## Prerequisites {#picklist-extension-pricing-scripts__section_klw_wkm_dhc}

Submit a support case requesting the enrichment be enabled for your environment. Please provide a use case for using the enrichment. To submit a support case, use the [ServiceNow Support portal](https://support.servicenow.com). For step-by-step instructions, see [Create a case on Now Support for CPQ Customers](https://support.servicenow.com/kb?sys_kb_id=d67d3e71475d7a90f64de825126d4326&id=kb_article_view).

Picklist extension fields need to have the "Enable for enrichment" toggle turned on to be affected by the enrichment.


The enrichments tab will be shown when navigating to a blueprint in the ServiceNow CPQ Admin.


Watch this demonstration of the Picklist Extension Pricing enrichment in action.


[PLE enrichment Script Demo](https://www.youtube.com/watch?v=deoQkQaPnX8)

## Demonstration script {#picklist-extension-pricing-scripts__section_rfl_3lm_dhc}

The following script was used in the demonstration video.

    let sourcesArr = [];
    let componentArr = [];
    let accessoryArr = [];

    pleRequest.forEach(o => {
        if(o.fieldVariableName == "alternateEnergySources") {
            sourcesArr.push(o.optionValue);
            //o.price = "1000";
        }
        if(o.fieldVariableName == "alternateEnergyComponents") {
            componentArr.push(o.optionValue);
            //o.price = "900";
        }
        if(o.fieldVariableName == "alternateEnergyAccessory") {
            accessoryArr.push(o.optionValue);
            //o.price = "800";
        }
    });

    var sourceMap = new Map();
    if(sourcesArr != null && sourcesArr.length != 0) {
        var sourceRows = lookup("Select Energy, BasePrice from AlternateEnergyPricing where Zip = :zip and Energy IN (:value)", { "zip": cfg.zipCode, "value": sourcesArr });
        for (var row of sourceRows) {
            sourceMap.set(row.get("Energy"), row.get("BasePrice"));
        }
    } else {    //source PLE not part of request. So populate this map for other PLEs 
        console.log("Entered non PLE in request case");
        sourcesArr = ["Solar", "Wind", "Nuclear"];
        var sourceRows = lookup("Select Energy, BasePrice from AlternateEnergyPricing where Zip = :zip and Energy IN (:value)", { "zip": cfg.zipCode, "value": sourcesArr });
        for (var row of sourceRows) {
            sourceMap.set(row.get("Energy"), row.get("BasePrice")); 
        }
        console.log(sourcesArr);
        console.log(sourceMap);
    }

    var multiplierMap = new Map();
    if(cfg.alternateEnergySources != "") {
        var multiplierRows = lookup("Select Group, Factor from AlternateEnergyMultiplier where Zip = :zip and Energy = :energyVal", { "zip": cfg.zipCode, "energyVal": cfg.alternateEnergySources });
        for (var row of multiplierRows) {
            multiplierMap.set(row.get("Group"), row.get("Factor"));
        }
    }
    let sourcePrice = sourceMap.get(cfg.alternateEnergySources);
    if(sourcePrice != null) {
            pleRequest.forEach(o => {
            if(o.fieldVariableName == "alternateEnergySources") {
                o.price = sourceMap.get(o.optionValue);
            }
            if(o.fieldVariableName == "alternateEnergyComponents") {
                let compPrice = multiplierMap.get("Component");
                if(compPrice != null) {
                    o.price = sourcePrice*compPrice;
                }
            }
            if(o.fieldVariableName == "alternateEnergyAccessory") {
                let multA = multiplierMap.get("Accessory");
                if(multA != null) {
                    o.price = sourcePrice*multA;
                }
            }
        });
    }

    console.log(sourcesArr);
    console.log(componentArr);
    console.log(accessoryArr);
    console.log(sourceMap);
    console.log(multiplierMap);

    return pleRequest;

## Sample design, use cases, and pleRequest elements {#picklist-extension-pricing-scripts__section_qdv_xlm_dhc}

Sample enrichment script design:

1. Loop through picklist options and store them for reference later (pleRequest.forEach())
2. Get prices for options and store them (either via table lookup or in the function itself)
3. Set the price for the right option (pleRequest.forEach())

{#picklist-extension-pricing-scripts__ol_txf_bmm_dhc}

Use cases:

* ZIP code dependent pricing
* Price multipliers and discounts
* Delta pricing
* Independent component pricing subtraction

{#picklist-extension-pricing-scripts__ul_chb_2mm_dhc}

pleRequest elements:

* pleRequest.fieldVariableName: variable name of the picklist field
* pleRequest.optionValue: picklist options defined in the field
* pleRequest.productId: ID of the product in the PLE mapping
* pleRequest.price: price to be set in the extension

{#picklist-extension-pricing-scripts__ul_ih1_hmm_dhc}

Referencing elements in the `pleRequest` object is similar to referencing objects such as `ProductList`, `cfg`, and `cfgRequest`. If a variable is substituted into
`pleRequest` (either in a `for` loop or using the `forEach` function), the element is still referenced after the variable, followed by a period.
**Related reference**   

* [ServiceNow CPQ scripting language reference](https://servicenow-prod.fluidtopics.net/bkDTe3Xy9zVx~t9_LxtEwg "View the operators, objects, and keywords that ServiceNow CPQ supports, together with information about type conversion, type checking, alternative scripts for unsupported operations, and accessing object properties.")

