You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This API class allows operating with record deletion log. For example, the methods of this class allow restoring records by scripts.

restore(recordDeletionLogId)


This method restores 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:

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

  • No labels