---
schema_version: "1"
id: 40461dcaf07d2594da8f691cb9b8fec84cac13acddfe528301d2a21a5c56549a
title: ServiceResourceInfo Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_lxscheduler_ServiceResourceInfo.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceInfo.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 68b34a33a3d3881a44677bde5c4a1e16260b4467a4755d0ba75ffc4f35599a1f
description: Contains information about a service resource.Creates a new instance of the lxscheduler.ServiceResourceInfo class using the specified service resource details.Returns the email ID of the service resource.Returns the type of the service resource such as Technician or Asset.Returns the ID of the service resource.Returns a list of requested service territories for the service resource.Returns the user ID of the service resource.Returns the user name of the service resource.
---
# ServiceResourceInfo Class

Contains information about a service resource.

## Namespace

[LxScheduler](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_lxscheduler.htm "The LxScheduler namespace provides an interface and classes for integrating Salesforce Scheduler with external calendars.")

- **[ServiceResourceInfo Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceInfo.htm#apex_lxscheduler_ServiceResourceInfo_constructors)**
- **[ServiceResourceInfo Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceInfo.htm#apex_lxscheduler_ServiceResourceInfo_methods)**

## ServiceResourceInfo Constructors

The following are constructors for ServiceResourceInfo.

- **[ServiceResourceInfo(userId, userName, email, serviceResourceId, territoryIds, resourceType)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceInfo.htm#apex_lxscheduler_ServiceResourceInfo_ctor)**  
    Creates a new instance of the lxscheduler.ServiceResourceInfo class using the specified service resource details.

### ServiceResourceInfo(userId, userName, email, serviceResourceId, territoryIds, resourceType)

Creates a new instance of the lxscheduler.ServiceResourceInfo class using the specified service resource details.

#### Signature

public ServiceResourceInfo(String userId, String userName, String email, String serviceResourceId, List<String\> territoryIds, String resourceType)

#### Parameters

- **userId**:
    
    Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")
    
    The user ID of the service resource.
- **userName**:
    
    Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")
    
    The user name of the service resource.
- **email**:
    
    Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")
    
    The email ID of the service resource.
- **serviceResourceId**:
    
    Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")
    
    The ID of the service resource.
- **territoryIds**:
    
    Type: List<String>
    
    A list of requested service territories for the service resource.
- **resourceType**:
    
    Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")
    
    The type of the service resource such as Technician or Asset.

## ServiceResourceInfo Methods

The following are methods for ServiceResourceInfo.

- **[getEmail()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceInfo.htm#apex_lxscheduler_ServiceResourceInfo_getEmail)**  
    Returns the email ID of the service resource.
- **[getResourceType()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceInfo.htm#apex_lxscheduler_ServiceResourceInfo_getResourceType)**  
    Returns the type of the service resource such as Technician or Asset.
- **[getServiceResourceId()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceInfo.htm#apex_lxscheduler_ServiceResourceInfo_getServiceResourceId)**  
    Returns the ID of the service resource.
- **[getTerritoryIds()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceInfo.htm#apex_lxscheduler_ServiceResourceInfo_getTerritoryIds)**  
    Returns a list of requested service territories for the service resource.
- **[getUserId()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceInfo.htm#apex_lxscheduler_ServiceResourceInfo_getUserId)**  
    Returns the user ID of the service resource.
- **[getUserName()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_ServiceResourceInfo.htm#apex_lxscheduler_ServiceResourceInfo_getUserName)**  
    Returns the user name of the service resource.

### getEmail()

Returns the email ID of the service resource.

#### Signature

public String getEmail()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getResourceType()

Returns the type of the service resource such as Technician or Asset.

#### Signature

public String getResourceType()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getServiceResourceId()

Returns the ID of the service resource.

#### Signature

public String getServiceResourceId()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getTerritoryIds()

Returns a list of requested service territories for the service resource.

#### Signature

public List<String\> getTerritoryIds()

#### Return Value

Type: List<String>

### getUserId()

Returns the user ID of the service resource.

#### Signature

public String getUserId()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getUserName()

Returns the user name of the service resource.

#### Signature

public String getUserName()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")