Loading
Sales Performance Management
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          error

          error

          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

          Syntax

          error(message)

          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."))
          Example of an error when a rep is missing an AE Quota.
           
          Loading
          Salesforce Help | Article