Skip to main content
Version: 1.23.3

SimpleRecordDeletionLog

With this API class, you can operate with the record deletion log. The following method of the class restores records.

restore(recordDeletionLogId)


Use this method to restore a deleted record.

Parameter(s):

NameTypeMandatoryDefault value
recordDeletionLogIdStringYN

Return:

TypeDescription
BooleanThis method returns true if a record has been restored successfully; otherwise, it returns false.

Example:

restore()
const deletionLog = new SimpleRecordDeletionLog();
if (deletionLog.restore(current.sys_id)) {
ss.addSuccessMessage('The record is restored');
}