getPreviousVersion()
Overview
public any function getPreviousVersion(
required string objectName
, required string id
, required numeric currentVersion
)
Returns the version number of the previous version of the given record ID and existing version
Arguments
Name | Type | Required | Description |
---|---|---|---|
objectName | string | Yes | Name of the object whose record we wish to retrieve the version history for |
id | string | Yes | ID of the record whose history we wish to view |
currentVersion | numeric | Yes | Current version number |