---
schema_version: "1"
id: 91417b442e18ef97479e8cb1ae86bc76612b65cc5567c31df13f839b2a46385a
title: ServiceResourceCapacityHistory
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_serviceresourcecapacityhistory.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_serviceresourcecapacityhistory.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: b221c95cc03baaa6676aa829aafbd4a1d67e53810116cb32557d17fbbfc072cc
description: Represents the history of changes made to tracked fields on a service resource capacity record. This object is available in API version 38.0 and later.
---
# ServiceResourceCapacityHistory

Represents the history of changes made to tracked fields on a service resource capacity record. This object is available in API version 38.0 and later.

## Supported Calls

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

Field Service must be enabled in your organization, and field tracking for service resource capacity fields must be configured.

## Fields

| Field Name | 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 value of the field before it was changed.



 |
| ServiceResourceCapacityId | 

Type

reference

Properties

Filter, Group, Sort

Description

ID of the service resource capacity being tracked. The history is displayed on the detail page for this record.



 |