この文章は Salesforce 機械翻訳システムを使用して翻訳されました。詳細はこちらをご参照ください。
英語に切り替える

Schedule Account Plan Category Calculation

一括で計算する 1 つ以上の取引先プランカテゴリをスケジュールします。最大 1000 個の取引先プランカテゴリを受け入れ、計算対象としてスケジュールします。
リソース
1SCHEDULE_ACCOUNT_PLAN_CATEGORY_CALC
使用可能なバージョン
55.0
Apex 要求の例
1// name of the salesorg for which the hob should be scheduled
2String salesOrg = '0001';
3<namespace>.ScheduleAccountPlanCategoryCalcCallout callout = new <namespace>.ScheduleAccountPlanCategoryCalcCallout (salesOrg);
4
5// Log Transaction Id
6String txId = <namespace>.TransactionHandler.getTransactionIdentifier();
7
8// Job object
9<namespace>.Job job = new <namespace>.Job();
10job.JobChainName = 'TPM_Calculation_Chain_<timestamp>';
11job.JobName = 'AccountPlanCategoryCalculation';
12job.BatchChainType = 'default';
13
14// Account Plans in Scope
15List<cgcloud__Account_Plan_Category__c> accountPlanCategoriesToCalculate = [
16    SELECT Id FROM cgcloud__Account_Plan__c 
17    // WHERE cgcloud__Account_Plan__r.cgcloud__Sales_Org__c = :salesOrg 
18    // AND ... 
19];
20
21<namespace>.OffplatformCalloutResponse response = callout.execute(txId, job, accountPlanCategoriesToCalculate, options);
22
23if (response.status != 200) {
24   // Handle error
25}