Sets the state of a CSV export process to Aborted. When a CSV 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 Code Snippet
OffPlatformCallout request = new OffPlatformCallout('ABORT_EXPORT_PROCESS','0001');
Map<String, String> data = new Map<String, String>();
data.put('csvGuid','11b19630-08f0-4f57-8e14-1778c0d3abde');
data.put('metaname', 'IntegrationExportPromotion');
OffPlatformCalloutResponse response = request.execute(TransactionHandler.getTransactionIdentifier(), data, null);
System.debug(response);
Response
{
"message":"Abort Export is scheduled successfully."
}