Schedule Rate Based Funding Calculation

Schedules a collection of Rate Based Funding (RBF) Objects for calculation.

The calculation process creates conditions from the Rate Based Funding calculation results and write them to the account product measures storage. Some KPIs can also be written back to the Rate Based Funding Objects in Salesforce.

Resource
SCHEDULE_RATE_BASED_FUNDING_CALCULATION
Available version
55.0
Apex Request Example
String salesOrg = '0001'; // Sales Organization name
<namespace>.Job jobInstance = new <namespace>.Job();
Set<Id> rbfIds = new Set<Id>{'rbfId_1','rbfId_2'};//Ids from RBF records
jobInstance.JobChainName = 'TPM_Calculation_Chain_'+Datetime.now().getTime();
jobInstance.JobName = 'ScheduleRateBaseFundingJob';
jobInstance.JobModes = new List<String>{'MapCalculationResultsWithKpiMap','WritebackConditionRecords'}; 
List<cgcloud__Rate_Based_Funding__c> rbfs = new List<cgcloud__Rate_Based_Funding__c>([SELECT Id FROM cgcloud__Rate_Based_Funding__c WHERE Id IN :rbfIds]);
<namespace>.ScheduleRBFCalculationCallout callout = new <namespace>.ScheduleRBFCalculationCallout(salesOrg);
<namespace>.OffPlatformCalloutResponse response = callout.execute(
    <namespace>.TransactionHandler.getTransactionIdentifier(), 
    jobInstance, 
    rbfs
);
if (response.status != 200) {
    //Handle error
}