You are here:
Abort Export Process
When an export process is running for a longer duration than expected, it consumes resources and blocks the scheduling of new exports. The following Abort Export code snippet unblocks the scheduling by aborting the export process.
Sample Apex Request
<NAMESPACE>.OffPlatformCallout request = new <NAMESPACE>.OffPlatformCallout('ABORT_EXPORT_PROCESS','<SALES_ORG_NAME>'); // Example '0001'
Map<String, String> data = new Map<String, String>();
data.put('csvGuid','<REQUEST_ID>'); // example '11b19630-08f0-4f57-8e14-1778c0d3abde'
data.put('metaname', '<METADATA_INTERNAL_NAME>'); // example DCTest1
<NAMESPACE>.OffPlatformCalloutResponse response = request.execute(<NAMESPACE>.TransactionHandler.getTransactionIdentifier(), params, null);
System.debug('execution information:' + response);

