Loading
Get Started with Communications, Media, and Energy & Utilities (CME)...
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
          Customizing Default Interface Implementations for Margin Ranges

          Customizing Default Interface Implementations for Margin Ranges

          You can customize the Margin Range Loader or the Margin Validation interfaces by changing the default implementations. You may want to do this to customize the names of the calculation procedures, matrices, and/or the logic used to validate the ranges. These interfaces are invoked by the Pricing Plan when the LoadMarginRanges method name is specified in a step.

          Important
          Important

          In the Pricing Plan Steps facet of the Default Pricing Plan, add the Load Margin Ranges step after the "Calculate Rollups" step and before the "Save Line Items" step.

          The Pricing Plan Steps with example steps
          Important
          Important

          If you do not have the MarginRangeLoader or MarginValidation interfaces in your org, install the Winter '19 release and run the post-installation or post-upgrade steps. See the CME Installation or the CME Upgrade .

          Note
          Note

          This is an optional step. Use it only if you want to customize the default interface implementations to load the margin range and validate it.

          Customize one or both of the following default interface implementations:

          • Margin Range Loader

            The MarginRangeLoader interface implementation loads the margin range data from the calculation procedure and returns the data in an output map. The calculation procedure name is passed through the loadMarginRange parameter in the pricing plan step.

            Customize this interface implementation, for example, when you don't want to be restricted to using the calculation procedure and want the flexibility to define your own margin range calculation process. See Customize the MarginRangeLoader Interface Implementation.

          • Margin Validation

            The MarginValidation interface implementation validates margin range on line items and returns an error message at the line item level in the Industries CPQ Cart.

            Customize this interface implementation, for example, when you don't want to validate error messages at the line item level. Instead, you want to set up a different validation mechanism. See Customize the MarginValidation Interface Implementation.

           
          Loading
          Salesforce Help | Article