Schedule Reorganization
プラットフォーム外のデータのクリーンアップと再編成を実行します。Salesforce のプロモーションのうち、削除されたプロモーション、非アクティブなプロモーション、またはキャンセルされたプロモーションは、プラットフォーム外のデータから削除されます。また、論理削除された指標データは、物理削除されます。
- リソース
-
1SCHEDULE_REORGANIZATION - 使用可能なバージョン
- 55.0
- Apex 要求の例
-
1String endpointName = 'SCHEDULE_REORGANIZATION'; 2String jobName = 'Reorg'; 3String salesOrg = '0001'; // Sales Organization name 4<namespace>.OffPlatformCallout request = new <namespace>.OffPlatformCallout(endpointName, salesOrg); 5<namespace>.OffplatformCalloutResponse response = request.execute( 6 <namespace>.TransactionHandler.getTransactionIdentifier(), 7 new Map<String,String>(), 8 JSON.serialize( 9 new Map<String, Object>{ 10 'jobname' => jobName, 11 'salesorg' => salesOrg, 12 'batchchain' => String.format( 13 'TPM_Calculation_Chain_{0}_{1}', 14 new List<String>{ 15 salesOrg, 16 System.now().format('YYYYMMdd_hhmmss') 17 } 18 ), 19 'jobthreads' => 1 20 } 21 ) 22); 23 24if (response.status != 200) { 25 //Handle errors 26}