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.

Create a trigger that sends an approval request to a supervisor when a service resource creates an absence.

Tip

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 (API version 48.0): Change events are available for the object.

ResourceAbsenceFeed: Feed tracking is available for the object.

ResourceAbsenceHistory: History is available for tracked fields of the object.