Newer Version Available

This content describes an older version of this product. View Latest

ResourceAbsence

Represents a time period in which a service resource is unavailable to work. 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

Field Service Lightning must be enabled. To create or update resource absences, you need “Read” access to service resources. To delete resource absences, you need “Edit” access to service resources.

Fields

Field Name Details
AbsenceNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
(Read only) An auto-generated number identifying the absence.
Address
Type
address
Properties
Filter, Nillable
Description
The compound form of the address associated with the absence.
City
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The city of the address associated with the absence. Maximum length is 40 characters.
Country
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The country of the address associated with the absence. Maximum length is 80 characters.
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.
GeocodeAccuracy
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The level of accuracy of a location’s geographical coordinates compared with its physical address. Usually provided by a geocoding service based on the address’s latitude and longitude coordinates.

This field is available in the API only.

Note

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.
Latitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with Longitude to specify the precise geolocation of the address associated with the absence. Acceptable values are numbers between –90 and 90 with up to 15 decimal places.

This field is available in the API only.

Note

Longitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with Latitude to specify the precise geolocation of the address associated with the absence. Acceptable values are numbers between –180 and 180 with up to 15 decimal places.

This field is available in the API only.

Note

Postal Code
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The postal code of the address associated with the absence. Maximum length is 20 characters.
ResourceId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The absent service resource.
Start
Type
dateTime
Properties
Create, Filter, Sort, Update
Description
The date and time when the absence begins.
State
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The state of the address associated with the absence. Maximum length is 80 characters.
Street
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The street number and name of the address associated with the absence.
Type
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The type of absence: Meeting, Training, Medical, or Vacation. The default value is Vacation. You can add custom values if needed.

Usage

The Absences related list on a service resource detail page lets you define periods of time when the resource is unavailable to work. Unless you’re using the Field Service Lightning managed packages with the scheduling optimizer, service resources can still be assigned appointments that conflict with their absences.

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

Tip

If you’re not using the Field Service Lightning managed packages, a calendar view isn’t available for individual service resources.