Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

OutOfOffice

Represents a user-set value on a profile that shows when the user intends to be out of the office. This object is available in API version 41.0 and later.

Supported Calls

create(), delete(), query(), undelete(), upsert(), update()

Special Access Rules

In Lightning Experience, lets users set a message next to their name in Chatter to show when they plan to be out of the office. The message appears in Lightning Experience, Salesforce Classic, and mobile views. Messages expire automatically after their end date. You can control whether out-of-office functionality is available to your users. Set it up in the Out of Office section in Setup | Chatter Settings.

Only internal users can set an out-of-office message.

Fields

Field Name Details
EndDate
Type
dateTime
Properties
Create, Filter, Sort, Update
Description
The date of the last day a person is out of the office. After the message expires, it goes away automatically.
IsEnabled
Type
boolean
Properties
Create, Defaulted on create
Description
Indicates whether an out-of-office message can be displayed for a user. The default value is true.
Message
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The message portion of the out-of-office message. This text, along with start and end dates, is appended to the user’s name in the Salesforce user interface. The maximum length of this string is 40 characters.
StartDate
Type
dateTime
Properties
Create, Filter, Sort, Update
Description
The date of the first day a person is out of the office.
UserId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the user associated with the out-of-office message.

Usage

  • Maximum message length is 60 characters.
  • Users can set only their own out-of-office message. An admin can set an out-of-office message for any user.
  • The out-of-office message can be set only for internal users.