---
schema_version: "1"
id: 6e6931c9fcecd547da1737002181ba50179248afc3dd879942332718f2078e8a
title: AssignedResource
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_assignedresource.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_assignedresource.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3666d2414c452ae1f37535799a0fa477904248fd49df9c9a0ee091aa3718fc4d
description: Represents a service resource who is assigned to a service appointment in Field Service and Lightning Scheduler. Assigned resources appear in the Assigned Resources related list on service appointments. This object is available in API version 38.0 and later.
---
# AssignedResource

Represents a service resource who is assigned to a service appointment in Field Service and Lightning Scheduler. Assigned resources appear in the Assigned Resources related list on service appointments. This object is available in API version 38.0 and later.

## Supported Calls

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

## Fields

| Field Name | Details |
| --- | --- |
| ActualTravelTime | 
Type

double

Properties

Create, Filter, Nillable, Sort, Update

Description

The number of minutes that the service resource needs to travel to the assigned service appointment. You can enter a value with up to two decimal places.



 |
| ApptAssistantInfoUrl | 

Type

textarea

Properties

Create, Nillable, Update

Description

The URL that contains the status of the mobile worker approaching the service appointment, the Community URL, and the expiry of the URL. Available in version 51.0 and later.



 |
| AssignedResourceNumber | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

An auto-generated number identifying the resource assignment.



 |
| EstimatedTravelTime | 

Type

double

Properties

Create, Filter, Nillable, Sort, Update

Description

The estimated number of minutes needed for the service resource to travel to the service appointment they’re assigned to. You can enter a value with up to two decimal places.



 |
| LocationStatus | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

The status of the mobile worker approaching the service appointment. When the location status changes to one of these values, a status update containing ApptAssistantInfoUrl is sent to the customer. Available in version 51.0 and later.

Possible values are:

- EnRoute
- LastMile





 |
| IsPrimaryResource | 

Type

boolean

Properties

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

Description

Indicates whether the service resource is a primary resource or not. The default value is false. Available in API version 47.0 and later.



 |
| ServiceAppointmentId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The service appointment that the resource is assigned to.

This is a relationship field.

Relationship Name

ServiceAppointment

Relationship Type

Lookup

Refers To

ServiceAppointment



 |
| ServiceCrewId | 

Type

reference

Properties

Create, Update, Filter, Group, Sort, Nillable

Description

The service crew that the resource is assigned to.

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

Since service resources can represent crews or individuals, appointments are typically assigned to crews in the following way:

1. Create a service resource of the Crew type that represent the crew.
2. Create an assigned resource on the service appointment and select the crew resource in the ServiceResourceId field.

As an alternative, you can assign appointments to crew members separately. This lets you track each member’s travel time and see a list of the crew members in the Assigned Resources related list. To take this approach, create an assigned resource for each crew member. List the crew member in the ServiceResourceId field and the crew they belong to in the ServiceCrewId field.















 |
| ServiceResourceId | 

Type

reference

Properties

Create, Update, Filter, Group, Sort

Description

The resource who is assigned to the service appointment.

This is a relationship field.

Relationship Name

ServiceResource

Relationship Type

Lookup

Refers To

ServiceResource



 |
| Transaction | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The last transaction ID of the scheduling and optimization request that updated this object. The transaction ID is automatically generated and populated by the Enhanced Scheduling and Optimization engine. Available in API version 63.0 and later.



 |

## Usage

You can assign multiple service resources to a service appointment. Service resources who are assigned to service appointments cannot be deactivated until they are removed from the appointments.

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

[AssignedResourceChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent 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 48.0)

Change events are available for the object.

[AssignedResourceHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/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.")(API version 61.0)

History is available for tracked fields of the object.

[AssignedResourceFeed](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/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.