Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
FieldHistoryArchive
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