---
schema_version: "1"
id: 63ec897b370e86a6bcc780d2dd83e75a07b081d7cebc5e732ba6e367489d869a
title: Create a Pricing Rules Flow
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_create_a_pricing_rules_flow.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_create_a_pricing_rules_flow.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6bd9237e5faea7869f5e8db03dae17205390c12e686dc3b23d0779bf89ad65a5
description: To use a pricing matrix, you must create a pricing rules workflow, or flow.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# 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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/resources-product/images/salesforce_flow_setasstartelement.jpg)
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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/resources-product/images/salesforce_flow_pricingrulesflow_begin.jpg)
7. Click **Save**.
8. In the **Flow Properties** dialog box, enter the **Name**, in this example, Pricing Rules Flow.
9. Click **OK**.