Skip to main content

Reprice Order Line Items and Assets

Learning Objectives

After completing this unit, you’ll be able to:

  • List the purpose of the repricing interfaces and implementations.
  • Explain how to use price availability dates to reprice a product.
  • Describe how to change the prices of assets with context rules.
  • Summarize how to reprice assets on an account.

A Swift Response

Repricing is a handy mechanism to support products with prices that fluctuate over time. It gives you control over constantly changing variables, such as currency exchange rates, energy costs, and usage prices. You can adjust the charge amount of all items or only specific products in an order, quote, or opportunity. You can also change the price of assets that a customer already uses.

At the request of the Infiwave marketing team, developer Eliza works to set up repricing in Industries EPC so that Infiwave can react quickly to market fluctuations and remain competitive. Sure, it’s easy to assign a new price to an offer, but what about the customers who’ve already submitted orders or are already using the product?

Sign Up for a Training Playground

We don’t have any hands-on challenges in this module, but if you want to practice and try out the steps, you need a special training org that contains Industries CPQ and our sample data. A regular Trailhead playground doesn’t have Industries CPQ or our sample data.

Here’s how to get the training org now.

  1. Sign up for an Industries Training Playground.
  2. Fill out the form.
    • Enter your first name and last name.
    • Enter an active email address.
    • Enter your company name.
    • Click Sign me up. A confirmation message appears.
  3. When you receive the confirmation email (sometimes this takes a few minutes), log in to your training playground using the credentials in the email.

For hands-on practice, use the practice guides in the Resources section of the subsequent units.

Repricing Basics

In Industries EPC, the repricing service is a background process that checks the accuracy of prices. It does this by evaluating and validating the availability dates of price list entries. The service also checks that line items still meet the criteria of any applied context rules and if any manual adjustments continue to apply.

Repricing service performing validation on a price list entry.

In this diagram, the repricing service validates a price list entry to make sure the price, adjustment, context rule, and availability dates remain applicable.

Interfaces and Implementations

Using the RepricingInterface you can easily reprice product prices. It includes two implementations.

  • DefaultRepricingImplementation retains the existing prices.
  • RepricingElementServiceImplementation reprices line items or parent objects of a line item, such as order line items or order headers. This repricing is based on effective dates for the price list entries of a product or promotion at the point in time when the repricing service runs.

Along with the RepricingInterface, there’s also the RepricingManAdjEligibilityInterface, which supports repricing using context rules for pricing adjustments. You must activate the RepricingManualAdjEligibilityService implementation to use this interface.

Note

Repricing interfaces and implementations don’t support attribute-based pricing, which uses a separate implementation.

To perform repricing, set the RepricingElementServiceImplementation to Active and Default in the RepricingInterface implementation.

RepricingElementServiceImplementation set to Active and Default in the RepricingInterface.

With the implementation now active, you can run the repricing service.

Repricing API

Depending on how you invoke the Repricing API, you can target all or specific line items in orders, quotes, opportunities, and assets. You can also run batch jobs to reprice line items in multiple objects. See the links in the Resources section at the end of this unit to learn more.

Repricing Order Line Items

As a trial run, the Infiwave marketing team asks Eliza to lower the price of a data plan product starting today. They want to make the new price available for any pending orders that are not yet submitted for fulfillment. Eliza makes this change by adding a new price list entry to the product, adjusting the availability dates, and then running the repricing service.

Follow along as she completes these steps using the Work with Repricing practice guide.

Repricing Account Assets to Reflect Context Rule Conditions

As Eliza celebrates her repricing success, she receives another request from the marketing team regarding the Acme account. Apparently, Infiwave had previously offered special pricing for an internet product to Acme because they were a Platinum customer, but this is no longer the case. Eliza needs to increase the price of this product since Acme’s service level agreement (SLA) status has changed.

Eliza knows that a context rule applies the special pricing for Platinum customers only, as shown here on the Pricing tab for the Internet product.

Platinum Accounts Rule Set on $20 price entry.

The Platinum Accounts Rule Set sets the recurring price to $20. This needs to be updated as Acme is no longer a Platinum customer.

Follow along as Eliza makes these changes using the Work with Repricing practice guide.

Next Up

The marketing team is grateful for Eliza’s adjustments. The team marvels at her ability to reprice both the line items in orders and the products that customers have already purchased. They insist it’s magic, but Eliza knows it’s just the repricing interface at work.

Follow Eliza as she dives deeper to explore Pricing hooks.

Resources

Share your Trailhead feedback over on Salesforce Help.

We'd love to hear about your experience with Trailhead - you can now access the new feedback form anytime from the Salesforce Help site.

Learn More Continue to Share Feedback