Loading
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
          Add the Tier-Based Rate Discount Element

          Add the Tier-Based Rate Discount Element

          Here’s how you can add the Tier-Based Rate Discount element to your rating procedure.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Performance, Unlimited, and Developer Editions with the Revenue Cloud Advanced license
          User Permissions Needed
          To create, update, and delete rating procedures: Rate Management Design Time User
          Important
          Important Ensure that you complete these prerequisites before you calculate a usage resource’s volume discount.
          • Add Rating Setting as the first element in the rating procedure.
          • To set rates for your usage resource, use the Base Rate element or set the adjustment type for the rate card entries to Override.
          1. From the App Launcher, find and select Rating Procedures.
          2. To open the rating procedure record, click the procedure name.
          3. To open the rating procedure in the Rating Procedure builder, click the rating procedure version.
          4. Define the Rating Setting element and the base rate of the usage resource.
          5. Click Add elements icon, and then select the Tier-Based Rate Discount element from the list.
          6. In the Lookup Table Details field, search for and select a lookup table.
            Note
            Note To calculate non-negotiable rates, use the Rate Adjustment by Tier Entries 2 lookup table. For negotiable rates, use the Tier-based Rate Adjustment by Rate Card Entry ID.
          7. Map your variables to the appropriate context tags.
          8. Click Settings icon, and enter 1 as the rank number.
            Note
            Note When more than one enabled version matches a rating procedure, choose the version with the highest rank. For example, if two enabled versions have rank values set to 1 and 2, choose the version with rank 2.
          9. Click Element Details icon, select Include in Output, and save your rating procedure.
          10. Click Simulate.
            Salesforce shows the Simulation Details with the input mode selected as Simplified by default.
          11. In the Input tab, enter variable values.
            You can enter the values either in JSON format (Advanced) or in the fields (Simplified).
          12. In the Input tab, click Simulate.
            Verify that the calculations are as per your rating settings.
            The Waterfall View shows every step of the rating calculation.
          13. When you’re happy with the simulation result, click Activate.
          Example
          Example Sample JSON input values:
          {
            "UsageRatableSummary": [
              {
                "RatingDecisionDateTime": "2024-08-07T12:59:47.403Z",
                "OverageQuantity": "5",
                "NetUnitRateUom": "0hEDU00000000Vf2AI",
                "ProductSellingModel": "",
                "UsageResource": "1BRDU00000000UP4AY",
                "SellableProduct": "",
                "BaseRateCard": "1CIDU00000000SJ4AY",
                "UsageRatableSummaryId": "1GuDU00000000My4AI",
                "TierRateCard": "1CIDU00000000SO4AY"
              }
            ]
          }
           
          Loading
          Salesforce Help | Article