---
schema_version: "1"
id: 1afc0fcd0d68e6a81768d6cbb73a19788fb993f5801f767a16d74760d99ac184
title: Add a Custom Action Condition for the Salesforce Spiff Commission Estimator
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/spiff_estimator_quote_custom_action_condition.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.spiff_estimator_quote_custom_action_condition.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 18434867f11c789ff6d4e300d60ae7269d7616797d184eeded93e7c65a8d36eb
description: Create a custom action condition so that only authorized users can access the Salesforce Spiff Commission Estimator for quotes. First, create a custom field on the Quote object that specifies which user profiles can use the estimator. Then, add a picklist value for the custom field to the Custom Action Condition object and create the custom action condition.
products:
  - Sales Cloud
  - Sales Enablement
release: "264"
---
# Add a Custom Action Condition for the Salesforce Spiff Commission Estimator

Create a custom action condition so that only authorized users can access the Salesforce Spiff Commission Estimator for quotes. First, create a custom field on the Quote object that specifies which user profiles can use the estimator. Then, add a picklist value for the custom field to the Custom Action Condition object and create the custom action condition.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available for an additional cost in: <strong>Professional</strong> Edition with Web Services API Enabled</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d41005e76">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d41005e76 ">To create custom fields on a Salesforce object:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d41005e76 ">(Salesforce) Customize Application</td>

          </tr>
        </tbody>
      </table>

1. Create a custom field on the Quote object.
    1. From the Object Manager in Setup, select the Quote object.
    2. Select **Fields & Relationships**.
    3. Click **New**.
    4. From the Data Type list, select **Formula**, and then click **Next**.
    5. Enter these details for the field, and then click **Next**.
        
        - For Field Label, enter Spiff Authorized Commission User.
        - For Field Name, enter Spiff\_Authorized\_Commission\_User.
        - For Formula Return Type, select **Checkbox**.
    6. For the formula body, click **Advanced Formula**, enter this formula, and then click **Next**.
        
        ```
        $Permission.SpiffCE__Get_Commission
        ```
    7. Select all user profiles that use with the Spiff Commission Estimator, and then click **Next**.
    8. Select the checkbox to add this field to the Quote page layout, and save your changes.
2. Add a picklist value to the Custom Action Condition object.
    1. From the Object Manager in Setup, select the Custom Action Condition object.
    2. Select **Fields & Relationships**, and then select **Field**, which has the `SBQQ__Field__c` API name.
    3. Scroll to the Field Picklist Values section and click **New**.
    4. Add the value Spiff\_Authorized\_Commission\_User, which is the API name of the custom formula field you added to the Quote object, and save your changes.
3. Create the custom action condition that allows authorized users to access the Spiff Commission Estimator for quotes.
    1. Go the details page for the Spiff Commission Action custom action you created.
    2. Go to the Custom Action Conditions related list and click **New**.
    3. Enter these values for the custom action condition.
        
        - For Custom Action Condition name, enter Spiff Commission Action Condition.
        - For Target Object, select **Quote**.
        - For ParentConditionIsActive, select **True**.
        - For Operator, select **Equals**.
        - For Filter Value, select **True**.
        - For Field, enter the API name for the picklist value you added to the Custom Action Condition object, Spiff\_Authorized\_Commission\_User\_\_c.
        
        If any of these fields aren't available, add them to the Custom Action Conditions page layout. See [Page Layouts.](https://help.salesforce.com/s/articleView?id=platform.customize_layout.htm&type=5&language=en_US)
    4. Save your changes.

#### See Also

- [Create Custom Fields](https://help.salesforce.com/s/articleView?id=platform.adding_fields.htm&type=5&language=en_US)
- [Custom Action Conditions](https://help.salesforce.com/s/articleView?id=sales.cpq_custom_action_conditions_intro.htm&type=5&language=en_US)