Newer Version Available

This content describes an older version of this product. View Latest

AssignedResource

Represents a service resource who is assigned to a service appointment in Field Service Lightning 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()

Fields

Field Name Details
ActualTravelTime
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The number of minutes that the service resource needed to travel to the service appointment they’re assigned to. You can enter a value with up to two decimal places.
AssignedResourceNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, 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.
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.
ServiceCrewId
Type
reference
Properties
Create, Update, Filter, Group, Sort, Nillable
Description
The service crew that the resource is assigned to.

Since service resources can represent crews or individuals, appointment 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.

Note

ServiceResourceId
Type
reference
Properties
Create, Update, Filter, Group, Sort
Description
The resource who is assigned to the service appointment.

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. Unless noted, they are available in the same API version as this object.

AssignedResourceFeed
Feed tracking is available for the object.