---
schema_version: "1"
id: 33594ad18212737c3161ff4139433c01ea2db776902edc5326d52b91e0fe1973
title: CarePgmEnrolleeWorkOrder
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/sforce_api_objects_carepgmenrolleeworkorder.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_objects_carepgmenrolleeworkorder.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 06f54177a0384d9af6ee550fc34187e97b95ccd501365d3b704e9e1bd7b94042
description: Represents information about the work order that's executed for the care program enrollee. This object is available in API version 58.0 and later.
---
# CarePgmEnrolleeWorkOrder

Represents information about the work order that's executed for the care program enrollee. 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

### CareProgramEnrolleeId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: This field represents the care program enrollee for whom the work order record is created.
    
    This field is a relationship field.
- **Relationship Name**: CareProgramEnrollee
- **Relationship Type**: Master-Detail
- **Refers To**: CareProgramEnrollee

### EndDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The end date and time for the execution of the care program enrollee work order.

### IsCustodyCompleted

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether all the custody chain entries for the work order are completed (true) or not (false).
- **Default value**: false

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The most recent date on which a user referenced the record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The most recent date on which a user viewed the record.

### Name

- **Type**: string
- **Properties**: Create, Filter, Group, idLookup, Sort, Update
- **Description**: The name of the work order record.

### NextWorkOrderId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: This field represents next work order that's executed for the associated care program enrollee.
    
    This field is a relationship field.
- **Relationship Name**: NextWorkOrder
- **Relationship Type**: Lookup
- **Refers To**: CarePgmEnrolleeWorkOrder

### PreviousWorkOrderId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The previous work order that's executed for the associated care program enrollee.
    
    This field is a relationship field.
- **Relationship Name**: PreviousWorkOrder
- **Relationship Type**: Lookup
- **Refers To**: CarePgmEnrolleeWorkOrder

### ServiceAppointmentId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: This field represents the service appointment that's associated with the work type.
    
    This field is a relationship field.
- **Relationship Name**: ServiceAppointment
- **Relationship Type**: Lookup
- **Refers To**: ServiceAppointment

### StartDateTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The start date and time for the execution of the care program enrollee work order.

### Status

- **Type**: picklist
- **Properties**: Create, Filter, Group, Restricted picklist, Sort, Update
- **Description**: This field specifies the execution status of the care program enrollee work order.
- **Possible values**:
    - Canceled
    - Completed
    - InProgress
    - NotStarted

### WorkTypeId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: This field represents work type for which the work order of the care program enrollee is created.
    
    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.

[CarePgmEnrolleeWorkOrderChangeEvent](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.

[CarePgmEnrolleeWorkOrderFeed](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.

[CarePgmEnrolleeWorkOrderHistory](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.