Create a Pricing Rules Flow

To use a pricing matrix, you must create a pricing rules workflow, or flow.

  1. From Setup, in the Quick Find box, enter Flow.
  2. Click Flows.
  3. Click New Flow.
  4. Add a custom action.
    1. Scroll down to Apex.
    2. Drag vlocity_cmt__CustomAction onto the flow.
    3. Enter the following information:
      • Name is the flow name, in this example, Pricing Initialization.

      • On the Inputs tab, from the Target picklist, select className.

      • In the Source box, enter PricingInitialization.

    4. Click OK.
    5. Click Set As Start Element.
    Set As Start Element
  5. Add a rule action.
    1. From the Apex section, drag vlocity_cmt__RuleAction onto the flow.
    2. Enter the following information:
      • Name is the rule action name, in this example, Quantity Order Pricing.

      • From the Target picklist, select ruleName.

      • In the Source box, enter the rule name, in this example Quantity Order Pricing.

      • Click Add Row.

      • From the Target picklist, select ruleType.

      • In the Source box, enter Pricing.

      • Click Add Row.

      • From the Target picklist, select doCommit.

      • In the Source box, enter {!$GlobalConstant.True}.

    3. Click OK.
  6. Connect the custom action and the rule action.
    Custom Action
  7. Click Save.
  8. In the Flow Properties dialog box, enter the Name, in this example, Pricing Rules Flow.
  9. Click OK.