With this API class, you can operate with the record deletion log. The following method of the class restores records.
Use this method to restore a deleted record.
Parameter(s):
Return:
Example:
const deletionLog = new SimpleRecordDeletionLog(); if (deletionLog.restore(current.sys_id)) { ss.addSuccessMessage('The record is restored'); }