---
schema_version: "1"
id: e05bd5717dcf4d58a0a793834ba7ff73469a7c0f292f0e8fceb6548438baa249
title: AssignedResource
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/salesforce-scheduler-dev-guide/guides/salesforce-scheduler/objects/sforce-api-objects-assignedresource.md
canonical_url: https://developer.salesforce.com/docs/service/salesforce-scheduler-dev-guide/guide/sforce-api-objects-assignedresource.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 505793f208c448f2716562dc2a7d1bff7ec1f8a811eb34845c43051f3a1216d0
products:
  - Salesforce Scheduler Developer Guide
  - Service Cloud Developer Content
---

# 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](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_associated_objects_change_event.htm) (API version 48.0): Change events are available for the object.

[AssignedResourceFeed](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_associated_objects_feed.htm): Feed tracking is available for the object.

