Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
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
          The HouseholdAssignmentBatchable Job (Managed Package)

          The HouseholdAssignmentBatchable Job (Managed Package)

          If you enabled the Record Rollup Optimization setting, use the HouseholdAssignmentBatchable batch job instead of the GroupAssignmentBatchable job to roll up records in batches.

          Required Editions

          Available in: Lightning Experience
          Available in: Professional, Enterprise, and Unlimited Editions

          Managed Package Icon This is a Financial Services Cloud managed package feature.

          For a Single Object, With Rollup Settings

          To run the job for a single object with rollup settings defined in the Record Rollup Configuration custom setting, use this code.

          FinServ.HouseholdAssignmentBatchable.runJob('Task');

          For Multiple Objects, With Rollup Settings

          To run the job for multiple objects sequentially with rollup settings defined in the Record Rollup Configuration custom setting, use this code.

          FinServ.HouseholdAssignmentBatchable.runJob(new List<String> {'FinancialAccount__c', 'Task'});

          For One or More Objects, Overriding the Rollup Settings

          To run the job for one or more objects, overriding the custom rollup settings, you must construct new instances of the FinServ.HouseholdAssignmentBatchable.RecordRollupConfig class and pass them to FinServ.HouseholdAssignmentBatchable.runJob(List<FinServ.HouseholdAssignmentBatchable.RecordRollupConfig> recordRollupConfigs).

          FinServ.HouseholdAssignmentBatchable.RecordRollupConfig provides two constructors.

          //startTime, endTime can be set to null.
          //When set to null, the filter is not applied when querying the object.
          
          //Constructor 1:
          RecordRollupConfig(String objectName, Datetime startTime, Datetime endTime)
          
          //Constructor 2:
          RecordRollupConfig(String objectName, Datetime startTime, Datetime endTime, Integer scope)

          Sample code:

          FinServ.HouseholdAssignmentBatchable.RecordRollupConfig recordRollupConfigFinancialAccount = new FinServ.HouseholdAssignmentBatchable.RecordRollupConfig('FinancialAccount__c', DateTime.newInstance(2009, 3, 4, 21, 2, 2), null, 500);
          FinServ.HouseholdAssignmentBatchable.RecordRollupConfig recordRollupConfigCase = new FinServ.HouseholdAssignmentBatchable.RecordRollupConfig('Case', null, null);
          
          List<FinServ.HouseholdAssignmentBatchable.RecordRollupConfig> recordRollupConfigs = new List<FinServ.HouseholdAssignmentBatchable.RecordRollupConfig>{recordRollupConfigFinancialAccount, recordRollupConfigCase};
          
          FinServ.HouseholdAssignmentBatchable.runJob(recordRollupConfigs);

          To run the jobs concurrently for multiple objects, you can call FinServ.HouseholdAssignmentBatchable.runJob() multiple times. Here’s an example.

          FinServ.HouseholdAssignmentBatchable.runJob('Task');
          FinServ.HouseholdAssignmentBatchable.runJob('Claim');
           
          Loading
          Salesforce Help | Article