Newer Version Available
FieldHistoryArchive
Represents field history values for all objects that retain field
history. FieldHistoryArchive is a big object,
available only to users with the “Retain Field History” permission. This
object is available in API version 29.0 and later.
Each instance of the FieldHistoryArchive object represents a single change in the value of a field. FieldHistoryArchive stores history for both standard and custom fields.
The Field field returns the name of the field unless the parent field or object is deleted, in which case it returns the field ID. You can use the ID to retrieve the old field and object name from the FieldNameAfterArchival and ParentNameAfterArchival fields, respectively.
Fields
| Field Name | Details |
|---|---|
| ArchiveFieldName |
|
| ArchiveParentName |
|
| ArchiveParentType |
|
| ArchiveTimestamp |
|
| CreatedById |
|
| CreatedDate |
|
| Field |
|
| FieldHistoryType |
|
| HistoryId |
|
| Id |
|
| NewValue |
|
| OldValue |
|
| ParentId |
|
Usage
When sorting fields, order them as follows:
- FieldHistoryType ASC
- ParentID ASC
- CreatedDate DESC