---
schema_version: "1"
id: 41d827bbdb5924845c27e879b8b3cb5ca835689ed6cade5255a7f623a918699b
title: ShiftWorkTopic
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-shiftworktopic.md
canonical_url: https://developer.salesforce.com/docs/service/salesforce-scheduler-dev-guide/guide/sforce-api-objects-shiftworktopic.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8b65da9507d4736a1b987d66f2aea352cce310ad010df18b9d41c74d0371f2b0
products:
  - Salesforce Scheduler Developer Guide
  - Service Cloud Developer Content
---

# ShiftWorkTopic

Represents the relationship between a Shift object and a Work Type or Work Type Group object for Salesforce Scheduler. This object is available in API version 56.0 and later.

## Supported Calls

`create()`, `delete()`, `describeLayout()`, `describeSObjects()`, `getDeleted()`, `getUpdated()`, `query()`, `retrieve()`, `search()`, `undelete()`, `update()`, `upsert()`

## Special Access Rules

Salesforce Scheduler must be enabled.

## Usage

For a ShiftWorkTopic record, you must specify either a work type or a work type group (based on the Salesforce Scheduler for Health Cloud option), or set `AreAllTopicsSupported` as `true`. Use `WorkTypeGroupId` for Salesforce Scheduler and use `WorkTypeId` only when the Salesforce Scheduler for Health Cloud option is enabled.

## Fields

### AreAllTopicsSupported

-   **Type**: boolean
-   **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
-   **Description**: Indicates whether the shift supports all work type or work type groups (`true`) or not (`false`).
-   **Default value**: `false`

### AttendeeLimit

-   **Type**: int
-   **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
-   **Description**: The maximum number of attendees for a group service appointment in a shift. This field is considered when the appointment mode is Group. Available in API version 61.0 and later.

### LastReferencedDate

-   **Type**: dateTime
-   **Properties**: Filter, Nillable, Sort
-   **Description**: The date and time that the current user last viewed a record related to this object.

### LastViewedDate

-   **Type**: dateTime
-   **Properties**: Filter, Nillable, Sort
-   **Description**: The timestamp for when the current user last viewed this object.

### MaxAppointments

-   **Type**: int
-   **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
-   **Description**: The maximum number of appointments allowed for each time slot for a shift. This field is considered when `WorkTypeId` or `WorkTypeGroupId` is provided. This field is available in API version 60.0 and later.

### Name

-   **Type**: string
-   **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
-   **Description**: The name of this shift-work topic relationship.

### ShiftId

-   **Type**: reference
-   **Properties**: Create, Filter, Group, Sort
-   **Description**: The ID of the shift that’s related to the work type indicated in the `WorkTypeId` field or the work type group indicated in the `WorkTypeGroupId` field. This field is a relationship field.
-   **Relationship Name**: Shift
-   **Relationship Type**: Lookup
-   **Refers To**: Shift

### WorkTypeGroupId

-   **Type**: reference
-   **Properties**: Create, Filter, Group, Nillable, Sort, Update
-   **Description**: The ID of the work type group that’s related to the shift indicated in the `ShiftId` field. This field is a relationship field.
-   **Relationship Name**: WorkTypeGroup
-   **Relationship Type**: Lookup
-   **Refers To**: WorkTypeGroup

### WorkTypeId

-   **Type**: reference
-   **Properties**: Create, Filter, Group, Nillable, Sort, Update
-   **Description**: The ID of the work type that’s related to the shift indicated in the `ShiftId` field. This field is a relationship field.
-   **Relationship Name**: WorkType
-   **Relationship Type**: Lookup
-   **Refers To**: WorkType

## 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.

[ShiftWorkTopicChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_associated_objects_change_event.htm): Change events are available for the object.

[ShiftWorkTopicFeed](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_associated_objects_feed.htm): Feed tracking is available for the object.

[ShiftWorkTopicHistory](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.

[ShiftWorkTopicOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_associated_objects_ownersharingrule.htm): Sharing rules are available for the object.

[ShiftWorkTopicShare](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_associated_objects_share.htm): Sharing is available for the object.

