---
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


---

# ServiceNow Quote Experience use case: Calculate prices for line-level fields

# ServiceNow Quote Experience use case: Calculate prices for line-level fields {#ariaid-title1}

Release version: Brazil  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 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 ServiceNow Quote Experience use case: Calculate prices for line-level fields

ServiceNow Quote Experience enables dynamic calculation of prices at the line-item level in quotes, adapting to changes such as product additions or removals.
This use case focuses on calculating three types of prices---Annual List Price, Unit Net Price, and Extended Net Price---based on configurable custom and system fields.
These calculations support accurate, real-time pricing adjustments during the quoting process.
Show full answer Show less  

## Key Features

* **Custom Fields Creation:** Users create custom header and line-level fields such as Start Date, End Date, Subscription Term, Target Line Item Discount, Annual List Price, Unit Net, and Extended Net to capture pricing inputs and calculation results.
* **Layout Configuration:** Custom and system fields are mapped into quote layouts to ensure visibility and usability during quote creation.
* **Rule Setup:** Three calculation rules are configured at the transaction line level to compute:
  * Annual List Price = List Price × Subscription Term (months)
  * Unit Net Price = List Price minus discount
  * Extended Net Price = Unit Net Price × Quantity
* **Rule Actions:** Each rule uses Determination actions with advanced scripting to perform the specific price calculations automatically.
* **Rule Grouping and Stage Association:** Rules are grouped and assigned to specific transaction stages (e.g., Draft) to control when they execute within the quoting workflow.
* **Deployment and Testing:** After configuration, the blueprint is deployed and tested via the user interface to verify correct price calculations based on user inputs.

## Key Outcomes

* Automatically calculated Annual List Price reflects the subscription term duration and list price.
* Unit Net Price accurately applies discount percentages to the list price, streamlining pricing adjustments.
* Extended Net Price dynamically updates based on quantity changes, providing precise total pricing per product line.
* Enhanced quoting accuracy and efficiency, reducing manual pricing errors and improving customer experience.  
ServiceNow Quote Experience can apply rules to line-level fields that dynamically calculate prices according to changes to the field, such as when products are added or removed.
In the ServiceNow Quote Experience, we can apply rules on line-level fields to cover various price calculations relevant to selected products. These calculations adapt dynamically to changes, such as the addition or removal of
products. This article outlines a use case involving three types of price calculations and the steps required to configure them.
The use case involves three types of price calculations:

* Annual List Price: This is the list price multiplied by the number of months chosen in the subscription period.
* Unit Net: The price of a product after the discount amount has been deducted.
* Extended Net: The unit net of the product multiplied by the quantity of the product.
{#transaction-manager-use-case-calculate-prices-for-line-level-fields__ol_bsd_pkn_3hc}

## Step 1: Create Custom Fields {#transaction-manager-use-case-calculate-prices-for-line-level-fields__Step-1_-Create-Custom-Fields}

* Navigate to ServiceNow CPQ Admin \> Transaction \> Associated Fields.
* Create all the custom fields required for your use case. For the detailed steps on how to create fields, see [Quote transaction fields](https://servicenow-prod.fluidtopics.net/gAeajLHsjsDaVaaAERRqFA "ServiceNow Quote Experience supports five field types at two levels —transaction (header) and transaction line —enabling administrators to capture all required quote data in ServiceNow CPQ.").

{#transaction-manager-use-case-calculate-prices-for-line-level-fields__ul_csd_pkn_3hc}

In this example, we intend to use the following fields:

Start Date
:   Custom header (dateTime type) field that stores the subscription start date.

End Date
:   Custom header field (dateTime type) that stores the subscription end date.

Subscription Term (Months)
:   Custom header (Number type) field that calculates the difference between the start date and end date, displaying the subscription term. For the detailed steps on how to do DateTime field calculations, see [Date and time field fields](https://servicenow-prod.fluidtopics.net/MIxx4GTRKi_8bo_5CBiN3w "Reference for how date and time fields behave in ServiceNow CPQ ServiceNow Quote Experience rules and scripts, including comparison operators, null handling, and supported aggregate functions.").

Target Line Item Discount
:   Custom header (Number type) field where users select the discount rate.

Quantity
:   Line-level system field specifying the quantity of the product chosen.

List Price
:   Line-level system field specifying the product's price.

Discount Percent
:   Line-level system field storing the discount rate. This field is automatically populated with the value selected in the Target Line Item Discount field using a rule.

Annual List Price
:   Custom field used to store results of price calculations for annual list price. This is a transaction line level custom field (Number Type)

Unit Net
:   System field labeled as "Net Price" in the system but renamed "Unit Net" by layout definition. This field stores results of price calculations.

Extended Net
:   System field that stores the total unit net price for the product in the line entry.

## Step 2: Add fields to layout {#transaction-manager-use-case-calculate-prices-for-line-level-fields__section_utf_fbz_4hc}

Map the configured fields into the appropriate layout for visibility. For the detailed steps, see [Set up layouts](https://servicenow-prod.fluidtopics.net/LYjp9BqJPJlNdbxg12S2WA "Layouts in ServiceNow CPQ define the structure and appearance of the configuration interface. They organize fields into pages, tabs, and sections, shaping how users interact with configurations and view shopping cart details.").

## Step 3: Create the rules {#transaction-manager-use-case-calculate-prices-for-line-level-fields__section_kzc_hbz_4hc}

Three rules are to be created:

* Calculate Annual List Price
* Calculate Unit Net Price
* Calculate Extended Net Price

{#transaction-manager-use-case-calculate-prices-for-line-level-fields__ul_nc1_vkn_3hc}

Follow these steps:

1. In Related Rules, click New Rule.
2. Enter the name of the rule and select Transaction Line as the rule type.
3. Click Save.

{#transaction-manager-use-case-calculate-prices-for-line-level-fields__ol_oc1_vkn_3hc}

## Step 4: Create and configure rule actions {#transaction-manager-use-case-calculate-prices-for-line-level-fields__section_fcb_3bz_4hc}

1. Select Determination as the action type for the rule.
2. Define the rule's conditions and action items.
3. Add the advanced script to perform the calculation for Use Case 1 (Annual List Price). Refer to the snapshot below.

4. Click Save.
5. Repeat steps 1 through 4 to configure rules for Use Case 2 (Unit Net) and Use Case 3 (Extended Net). Refer to the snapshots below.

{#transaction-manager-use-case-calculate-prices-for-line-level-fields__ol_ibv_ykn_3hc}

Use Case 2 (Unit Net) - Edit Net pricing calculation:

Use Case 3 (Extended Net) - Edit Calculate annual extended net price:

## Step 5: Associate rules to rule groupings {#transaction-manager-use-case-calculate-prices-for-line-level-fields__section_jkr_5bz_4hc}

1. On the Admin page, click Rule Groupings, and then click Add Rule Grouping. Enter the variable name as the stage in which rule should run (Draftstage), and then click Save.

2. Associate the newly created rules:

   1. Click Associate.
   2. Select the name of the rule you created.
   3. Click Done.

   {#transaction-manager-use-case-calculate-prices-for-line-level-fields__ul_sw5_jln_3hc}

3. To link the newly created rule grouping with the stage (Draft in the sample use case) where your rules should run, click Stages on the transaction page. Click Draft, and then click Rule groupings. Search the new rule grouping, select, and then click Save.

{#transaction-manager-use-case-calculate-prices-for-line-level-fields__ol_pw5_jln_3hc}

## Step 6: Deploy and test {#transaction-manager-use-case-calculate-prices-for-line-level-fields__section_qlt_vbz_4hc}

Deploy the configured blueprint to make the rules active, and then test the implementation in the UI to confirm the scripts are working as expected.

Below is an example of the final implementation:

* Use Case 1: Entering the start date and end date header fields auto-populates Annual list price (List Price \* Subscription Term i.e. $2,500.00 \* 4 Months 11 Days = $10,885.00)
* Use Case 2: Setting the target line item discount as 5 %, auto-populates the unit net price \[List price - Discount/100 \* List price i.e. $2,500.00 - (0.05 \* $2,500.00) = $2,375.00\]
* Use Case 3: Setting the quantity of each entry auto-changes the Extended Net price (Unit net price \* Quantity i.e. $2,375.00 \* 10 = $23,750.00)

{#transaction-manager-use-case-calculate-prices-for-line-level-fields__ul_fhm_bcz_4hc}

[Final output](https://api.media.atlassian.com/file/0b8f679f-9b7c-4588-945d-7175d097d500/artifact/video_1280.mp4/binary/cdn?client=71a95134-cb5f-4d3c-a7e7-bf5197602cec&collection=contentId-1923481616&max-age=2592000&token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI3MWE5NTEzNC1jYjVmLTRkM2MtYTdlNy1iZjUxOTc2MDJjZWMiLCJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpjb2xsZWN0aW9uOmNvbnRlbnRJZC0xOTIzNDgxNjE2IjpbInJlYWQiXX0sImV4cCI6MTc2MzQwMjI3MiwibmJmIjoxNzYzMzk5MzkyLCJhYUlkIjoiNzEyMDIwOmE3MmMwNDYwLWM0OWEtNDAyZS1iNWJjLWE5NWIxZjk4ZjMxNCJ9.j9CHqPDPWPN-towOqICAF484FBEZOzgkFg9upnWT7js)

