Returns a custom message for a statement calculation error in Salesforce Spiff. This function stops statement calculations and helps you alert admins that information is missing or preventing the calculation from executing.
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 |
Arguments
| Argument |
Required? |
Description |
| message |
Required |
A string with the error message text, enclosed in double quotes. |
Example
Show an error when a rep is missing an AE quota.
=if(CorpAEQuota != null, CorpAEQuota, error("Enter an AE Quota for this rep."))