---
schema_version: "1"
id: 270d43bcaee1700d42bd67d27a84a38e3d340fbded0df25431edc237f6645c13
title: AccountServicePreference
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/sforce_api_objects_accountservicepreference.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_objects_accountservicepreference.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: af255899669e5cf973d84be3c252e929adc57813cb4566e108be4bce228f42d6
description: Represents the preferences an account has for the services they receive. In Home Health, this object represents the preferences that a patient has for the health workers assigned to their visits. This object is available in API version 58.0 and later.
---
# AccountServicePreference

Represents the preferences an account has for the services they receive. In Home Health, this object represents the preferences that a patient has for the health workers assigned to their visits. This object is available in API version 58.0 and later.

## Supported Calls

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

## Fields

### AccountId

- **Type**: Lookup
- **Properties**: Create, Filter, Group, Sort
- **Description**: The patient whose preference is being recorded.
- **Relationship Name**: Account
- **Refers To**: Account

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The date and time when the record was last referenced.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The date and time when the record was last viewed.

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: The name of the record.

### PreferenceId

- **Type**: Polymorphic lookup
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: The Preference that the patient has about their health worker. This preference may be a skill or trait, or a specific person that they want to avoid or be assigned to their visit.
- **Relationship Name**: Preference
- **Refers To**:
    - ServiceResource
    - Skill

### PreferenceOrder

- **Type**: int
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The order of the preference selected by the patient.
    
    This field is available in API version 61.0 and later.

### PreferenceType

- **Type**: picklist
- **Properties**: Create, Filter, Group, Restricted picklist, Sort, Update
- **Description**: Specifies the type of preferences that’s recorded.
- **Possible values**:
    - Skill

### ServiceContextId

- **Type**: Lookup
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: References the work type that this preference is valid for. For instance, a patient may have a certain preference that only applies to physiotherapy and another preference that only applies to wound management.
- **Relationship Name**: ServiceContext
- **Refers To**: WorkType

### UsageType

- **Type**: picklist
- **Properties**: Create, Filter, Group, Restricted picklist, Sort, Update
- **Description**: Specifies the feature that the created record is applicable for.
- **Possible values**:
    - HomeHealth—Home Health

## 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.

[AccountServicePreferenceChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_associated_objects_change_event.htm "A StandardObjectNameChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.") (API version 60.0)

Change events are available for the object.

[AccountServicePreferenceFeed](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")

Feed tracking is available for the object.

[AccountServicePreferenceHistory](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.