LeadHistory
Maintains a historical record of changes made to Lead fields that have history tracking enabled.
Columns
| Name | Type | References | Description |
| Id [KEY] | String | Unique identifier of the lead history record. | |
| IsDeleted | Bool | Indicates whether the history record has been deleted. | |
| LeadId | String |
Lead.Id | ID of the lead whose field value changed. |
| CreatedById | String |
User.Id | ID of the user who made the change. |
| CreatedByIdType | String | Specifies the type of the 'CreatedById' polymorphic field to use in the statement. | |
| CreatedByIdExternalFieldName | String | Specifies the external field name of the 'CreatedById' polymorphic field to use in an INSERT/UPDATE/UPSERT statement | |
| Field | String | Name of the field that was changed. | |
| DataType | String | Type classification for Data. | |
| OldValue | String | Previous value of the field before the change. | |
| NewValue | String | New value of the field after the change. | |
| SOQL | String | Specifies the SOQL query to execute against the Salesforce servers. If this pseudo column is set from the WHERE clause it will take precedence over the original query. | |
| ExternalIdColumn | String | Specifies the external Id column to use if performing an insert. If this value is specified, upsert will be used when the INSERT command is called. | |
| FilterScope | String | Optional scope to limit the records returned from queries. This property can take one of these values: Delegated, Everything, Mine, MineAndMyGroups, My_Territory, My_Team_Territory, or Team. | |
| CreatedDate | Datetime | Date and time when the change was recorded. |