getRecordVersions()

Overview

public any function getRecordVersions(
      required string objectName
    , required string id        
    ,          string fieldName 
)

Returns a summary query of all the versions of a given record (by ID), optionally filtered by field name

Arguments

NameTypeRequiredDescription
objectNamestringYesName of the object whose record we wish to retrieve the version history for
idstringYesID of the record whose history we wish to view
fieldNamestringNoOptional name of one of the object's property which which to filter the history. Doing so will show only versions in which this field changed.