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
          PricingInitialization

          PricingInitialization

          The PricingInitialization implementation is a wrapper class that calls the default pricing implementation through the custom action in flows.

          CustomAction Dialog Box

          CustomAction Dialog Box showing PricingInitialization in className

          Interface

          VlocityOpenInterface

          Parameters

          The PricingInitialization implementation does not require any input through the custom action in the flow. It operates against the line items list included in the flow map.

          Sample Code

          global with sharing class PricingInitialization implements VlocityOpenInterface {
             global Boolean invokeMethod(String methodName, Map < String, Object > input, Map < String, Object > output, Map < String, Object > options) {
                if (methodName.equals('executeCustomAction')) {
                   return executeCustomAction(input, output, options);
                }
                return true;
             }
             private Boolean executeCustomAction(Map < String, Object > inputMap, Map < String, Object > outputMap, Map < String, Object > optionsMap) {
                Map < String, Object > flowMap = (Map < String, Object > ) inputMap.get('flowMap');
                String nsp = ApplicationUtilities.getNamespacePrefix();
                List < Sobject > itemList = (List < SObject > ) flowMap.get('itemList');
                SObject parent = (SObject) flowMap.get('parent');
                DefaultPricingImplementation defaultPricing = new DefaultPricingImplementation();
                defaultPricing.priceLineItems(parent, itemList);
                return true;
             }
          }

          Related Implementations

          None

           
          Loading
          Salesforce Help | Article