---
schema_version: "1"
id: ac42b33a689b8324f7bda791aa85325c66c0f620114e2e12c2afe5752606def9
title: ServiceResourcePreference
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_serviceresourcepreference.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_serviceresourcepreference.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 371ef576bbc1e74b2e090ff3cb72ac32bc2e3343d7e8c6969c63f5c6a76e2659
description: Represents the service resource scheduling preferences that are considered as a business objective in the scheduling logic engine. This object is available in API version 52.0 and later.
---
# ServiceResourcePreference

Represents the service resource scheduling preferences that are considered as a business objective in the scheduling logic engine. This object is available in API version 52.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()

## Special Access Rules

The org must have the Workforce Engagement license. To view, create, edit, and delete records, the user must have the Workforce Engagement Agent or Workforce Engagement Planner permission set.

## Fields

| Field | Details |
| --- | --- |
| EndDate | 
Type

date

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The end date period that this preference is effective.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date when the service resource preference 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 service resource preference was last viewed.



 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

The service resource preference record name.



 |
| OperatingHoursId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The operating hours associated with the service resource preference.

This is a relationship field.

Relationship Name

OperatingHours

Relationship Type

Lookup

Refers To

OperatingHours



 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

The owner of the service resource preference.

This is a polymorphic relationship field.

Relationship Name

Owner

Relationship Type

Lookup

Refers To

Group, User



 |
| ServiceResourceId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The service resource associated with the service resource preference.

This is a relationship field.

Relationship Name

ServiceResource

Relationship Type

Lookup

Refers To

ServiceResource



 |
| StartDate | 

Type

date

Properties

Create, Filter, Group, Sort, Update

Description

The start date period that this preference is effective.



 |