You are here:
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
| Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions |
| Available for an additional cost in: Professional Edition with Web Services API Enabled |
| User Permissions Needed | |
|---|---|
| To create custom fields on a Salesforce object: | (Salesforce) Customize Application |
-
Create a custom field on the Quote object.
- From the Object Manager in Setup, select the Quote object.
- Select Fields & Relationships.
- Click New.
- From the Data Type list, select Formula, and then click Next.
-
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.
-
For the formula body, click Advanced Formula, enter this formula, and then click Next.
$Permission.SpiffCE__Get_Commission - Select all user profiles that use with the Spiff Commission Estimator, and then click Next.
- Select the checkbox to add this field to the Quote page layout, and save your changes.
-
Add a picklist value to the Custom Action Condition object.
- From the Object Manager in Setup, select the Custom Action Condition object.
-
Select Fields & Relationships, and then select Field, which has the
SBQQ__Field__cAPI name. - Scroll to the Field Picklist Values section and click New.
- 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.
-
Create the custom action condition that allows authorized users to access the Spiff Commission Estimator for quotes.
- Go the details page for the Spiff Commission Action custom action you created.
- Go to the Custom Action Conditions related list and click New.
-
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.
- Save your changes.
Did this article solve your issue?
Let us know so we can improve!

