Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Schedule Reorganization
Performs off-platform data cleanup and reorganization.
Promotions in Salesforce that are deleted, inactive, or cancelled are removed from off-platform
data. Additionally, softly deleted measure data is hard deleted.
- Resource
-
1SCHEDULE_REORGANIZATION - Available version
- 55.0
- Apex Request Example
-
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}