Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This API class allows operating you to operate with the record deletion log. For example, the methods of this class allow restoring records by scriptsThe following method of the class restores records.

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:

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


Table of Contents
absoluteUrltrue
classfixedPosition
printablefalse