getNextVersion()
Overview
public numeric function getNextVersion(
required string objectName
, required string id
, required numeric currentVersion
)
Returns the version number of the next 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 |