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
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 |
fieldName | string | No | Optional 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. |