Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
Set Up and Maintain Retail Execution
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
          Configure the After the Current Condition Base Price

          Configure the After the Current Condition Base Price

          You can modify the base values of the fields that are used to calculate orders. You can use this user exit to manipulate the condition base, which impacts the calculation result.

          Required Editions

          Available in: Lightning Experience in Professional, Enterprise, and Unlimited Editions that have Consumer Goods Cloud enabled
          User Permissions Needed
          To configure user exits:

          CGCloud Business Admin

          OR

          CGCloud Retail Business Admin

          1. From the App Launcher, find and select User exits.
          2. Click New.
          3. From the Type dropdown list, select Configure After Calculation Result.
          4. Click Save.
          5. On the Related tab, click New.
            Use multiple user exit content records to structure the code. For example, structure the content so that one record holds the return variable name and the start of the switch statement. Use another record to hold the logic for the different user exit IDs, and another record to return the result or variable.
          6. Enter the query.
            Sort Order User Exit Content Description
            1
            var ModifiedBases = {};
            
            switch(UserExitId) {
            

            Declaring return variable and start of the switch statement

            2
            case "100_Base_BasePrice_ext":
            
                if(Utils.isDefined(ProductAttributes[0].text1) && ProductAttributes[0].text1 === "Empower Cola 1,0 L PET"){
                  ModifiedBases.cBase = 10;
                }
                break;
            
            Logic that handles the user exit id “100_Base_BasePrice_ext”
            3
            }
            return ModifiedBases;
            
            Closing the switch statement and returning the return variable
          7. From the App Launcher, find and select Calculation Schemas.
          8. Select a calculation schema, and click Edit.
          9. In the Calculation Schema Steps section, select a calculation step to apply to this user exit. For example, the above user exit content is for case step 100.
          10. In the User Exit section, enter the user exit ID to apply to the calculation. For example, the user exit ID for case step 100 is 100_Base_BasePrice_ext.
          11. Click Save.
           
          Loading
          Salesforce Help | Article