Loading
Sales Performance Management
Содержание
Выбрать фильтры

          Результаты отсутствуют
          Результаты отсутствуют
          Ниже приведены некоторые советы по поиску.

          Проверьте орфографию ключевых слов.
          Воспользуйтесь более общим поисковым запросом.
          Выберите несколько фильтров для расширения области поиска.

          Выполните поиск по всей справке Salesforce.
          Reduce Commission Engine Load with Upstream Data Changes

          Reduce Commission Engine Load with Upstream Data Changes

          Preparing data in Salesforce before it syncs into Spiff reduces the work the commission engine performs. Addressing data structure, type conversions, and crediting logic upstream produces faster, more maintainable commission calculations.

          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

          Why Address Data Upstream

          Every transformation that the commission engine performs — converting a data type, traversing a relationship to find a flag, or running a lookback calculation to determine territory credit — consumes memory and time. The commission engine has a fixed allocation of both for each statement. When that allocation is exceeded, statements time out or fail.

          Use Object Manager, Flow, or Apex to move data preparation work upstream into Salesforce so that the commission engine receives clean, pre-shaped data and focuses on commission logic rather than data cleanup.

          Common Upstream Optimization Scenarios

          These three scenarios offer the highest return when addressing data upstream before it reaches Spiff.

          • Data type conversion. Spiff uses specific data types for dates, booleans, and currency. When source data doesn't match the expected type, Spiff converts each value at calculation time for every record processed.

            Common examples include converting a DATETIME field to the DATE format that Spiff uses for period comparisons, or converting a boolean field that your source system stores as 0 and 1 into Spiff's true / false values.

            Perform these conversions in a Salesforce Flow or formula field before the data syncs, so Spiff receives the value in its final form.

          • Indicator fields on related objects. Commission rules sometimes require checking whether a specific product, category, or condition is associated with a record. When that information lives on a related object, Spiff traverses the relationship for every record in the filter to evaluate the condition.

            For example, a rule that pays commission only when an order includes a specific product type causes Spiff to join the Order object to the Order Product object for every order record. Adding a checkbox or indicator field directly on the Order object — set by a Flow when the product is added — eliminates that relationship traversal entirely.

            Consider adding indicator fields on parent objects whenever your commission logic requires checking a condition on a child object.

          • Territory crediting. Territory-based commission calculations often require lookback logic — determining which territory a rep belonged to at the time of a deal close and what credit they're owed. Running this logic inside the commission engine for every statement is calculation-intensive.

            A more efficient approach is to have your customer supply territory assignment data as a pre-computed lookup. When the assignment data is available as a direct field or related object in Spiff, the engine reads a value rather than computing it. Coordinate with your customer to supply this data as part of the regular data sync rather than computing it dynamically in every statement run.

          Tools for Upstream Data Management

          Use these Salesforce tools to prepare data before it reaches Spiff.

          • Object Manager. Add formula fields, checkbox fields, or custom fields to existing Salesforce objects to store pre-computed values or indicator flags.
          • Flow. Use record-triggered Flows to populate indicator fields, convert data types, or write computed values when Spiff creates or updates records.
          • Apex. For complex transformations or batch processing, use Apex triggers or scheduled Apex to prepare data at scale before it syncs into Spiff.
          Important
          Important Coordinate upstream data changes with your Salesforce admin and commission plan owners. Changes to source objects affect both CRM processes and commission calculations.

          Plan Upstream Changes Before Implementation

          Upstream data changes are easiest to implement at the start of an engagement. Review the complete data mapping for your commission plans. And, identify any fields that require type conversion, any conditions that require relationship traversal, and any crediting logic to be supplied as pre-computed data.

           
          Загрузка
          Salesforce Help | Article