AssignedResource

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

Usage 

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

Fields 

AssignedResourceNumber 

  • Type: string
  • Properties: Autonumber, Defaulted on create, Filter, idLookup, Sort
  • Description: An auto-generated number identifying the resource assignment.

EventId 

  • Type: reference
  • Properties: Filter, Group, Nillable, Sort
  • Description: The ID of the event that is added to the assigned resources calendar when the service appointment is created. This is a relationship field.
  • Relationship Name: Event
  • Relationship Type: Lookup
  • Refers To: Event

IsPrimaryResource 

  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: Indicates whether the service resource is a primary resource or not. Available in API version 47.0 and later.
  • Default value: false

IsRequiredResource 

  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: Indicates whether the service resource is a required resource or not. If this field is set to false, Salesforce Scheduler considers the resource as available for other appointments.
  • Default value: false

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

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

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 (API version 48.0): Change events are available for the object.

AssignedResourceFeed: Feed tracking is available for the object.