---
schema_version: "1"
id: 01202fd8df56430bdfcd2dc2130ea41493d670a81b971fcca502c5fd0f311c2b
title: SiteHistory
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_sitehistory.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_sitehistory.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ffc7e33c40e0a15902912666f0c2e41a59ea30826ce64641fab77b39ffb7accf
description: Represents the history of changes to the values in the fields of a site. This object is generally available in API version 18.0 and later.
---
# SiteHistory

Represents the history of changes to the values in the fields of a site. This object is generally available in API version 18.0 and later.

To access this object, Salesforce Sites must be enabled for your organization.

## Supported Calls

describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

You can also enable delete() in API version 42.0 and later. See [Enable delete of Field History and Field History Archive](https://help.salesforce.com/articleView?id=000321814&type=1&mode=1&language=en_US "HTML (New Window)").

## Special Access Rules

- Customer Portal users can't access this object.
- To view this object, you must have the “View Setup and Configuration” permission.

## Fields

| Field | Details |
| --- | --- |
| DataType | 
Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

Data type of the field that was changed.



 |
| Field | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The name of the field that was changed.



 |
| NewValue | 

Type

anyType

Properties

Nillable, Sort

Description

The new value of the field that was changed.



 |
| OldValue | 

Type

anyType

Properties

Nillable, Sort

Description

The last value of the field before it was changed.



 |
| SiteId | 

Type

reference

Properties

Filter, Group, Sort

Description

The ID of the associated Site.

This is a relationship field.

Relationship Name

Site

Relationship Type

Lookup

Refers To

Site



 |