---
schema_version: "1"
id: 60c76db05a650b42e300b76c703e02f100cffe3f5d011d4bd1048d49ae6bd115
title: ResourceAbsence
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/salesforce-scheduler-dev-guide/guides/salesforce-scheduler/objects/sforce-api-objects-resourceabsence.md
canonical_url: https://developer.salesforce.com/docs/service/salesforce-scheduler-dev-guide/guide/sforce-api-objects-resourceabsence.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: b7c539c6ac0e3febaa3d019b88f5b0ced914dc827b7d4a49163f3bd562c49d28
products:
  - Salesforce Scheduler Developer Guide
  - Service Cloud Developer Content
---

# ResourceAbsence

Represents a time period in which a service resource is unavailable to work in Salesforce Scheduler. This object is available in API version 38.0 and later.

## Supported Calls

`create()`, `delete()`, `describeLayout()`, `describeSObjects()`, `getDeleted()`, `getUpdated()`, `query()`, `retrieve()`, search(), `update()`, `upsert()`

## Special Access Rules

Salesforce Scheduler must be enabled.

## Usage

Resource absences you define periods of time when a service resource is unavailable to work.

**tip:** Create a trigger that sends an approval request to a supervisor when a service resource creates an absence.

## Fields

### AbsenceNumber

-   **Type**: string
-   **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
-   **Description**: (Read only) An auto-generated number identifying the absence.

### Description

-   **Type**: textarea
-   **Properties**: Create, Nillable, Update
-   **Description**: The description of the absence.

### End

-   **Type**: dateTime
-   **Properties**: Create, Filter, Sort, Update
-   **Description**: The date and time when the absence ends.

### LastReferencedDate

-   **Type**: dateTime
-   **Properties**: Filter, Nillable, Sort
-   **Description**: The date when the resource absence was last modified. Its label in the user interface is `Last Modified Date`.

### LastViewedDate

-   **Type**: dateTime
-   **Properties**: Filter, Nillable, Sort
-   **Description**: The date when the resource absence was last viewed.

### ResourceId

-   **Type**: reference
-   **Properties**: Create, Filter, Group, Sort
-   **Description**: The absent service resource. This is a relationship field.
-   **Relationship Name**: Resource
-   **Relationship Type**: Lookup
-   **Refers To**: ServiceResource

### Start

-   **Type**: dateTime
-   **Properties**: Create, Filter, Sort, Update
-   **Description**: The date and time when the absence begins.

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[ResourceAbsenceChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_associated_objects_change_event.htm) (API version 48.0): Change events are available for the object.

[ResourceAbsenceFeed](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_associated_objects_feed.htm): Feed tracking is available for the object.

[ResourceAbsenceHistory](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_associated_objects_history.htm): History is available for tracked fields of the object.

