Foundations Apex API Developer Reference

fferpcore.ffasync_RecordsDeletionService

global with sharing class ffasync_RecordsDeletionService

The service class for deleting fferpcore.ffasync_Process Runs, associated child Runs, and their Logs.

Methods

deleteLogsOlderThanXDays

global static void deleteLogsOlderThanXDays(Integer daysOld)

Deletes logs older than the supplied number of days.

Input Parameters

Name Type Description
daysOld Integer Number of days we want to delete logs for e.g. 90

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.

Integer daysOld = 90;
fferpcore.ffasync_RecordsDeletionService.deleteLogsOlderThanXDays(daysOld);

deleteLogsByFinishedProcessRunIds

global static void deleteLogsByFinishedProcessRunIds(List<Id> processRunIds)

Deletes fferpcore.ffasync_Process Run and fferpcore.ffasync_Process Log records using the supplied fferpcore.ffasync_Process Run IDs.

Input Parameters

Name Type Description
processRunIds List<Id> List of Id for all Process Runs to be deleted.

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.

Id processRunId;
List<Id> processRunIds = new List<Id>{processRunId};
fferpcore.ffasync_RecordsDeletionService.deleteLogsByFinishedProcessRunIds(processRunIds);
© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.