Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
This API class allows operating with record deletion log. For example, methods of this class allow restoring records by scripts.
restore(recordDeletionLogId)
This method restores a deleted record.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
recordDeletionLogId | String | Y | N |
Return:
Type | Description |
---|---|
Boolean | This method returns 'true' if a record has been restored successfully; otherwise, it returns 'false'. |
Example:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
const deletionLog = new SimpleRecordDeletionLog(); if (deletionLog.restore(current.sys_id)) { ss.addSuccessMessage('The record is restored') } |
Table of Contents | ||||||
---|---|---|---|---|---|---|
|