ServiceChannel

Represents a channel of work items that are received from your organization—for example, cases, chats, or leads.

Parent Type 

This type extends Metadata and inherits its fields.

File Suffix and Directory Location 

ServiceChannel components have the suffix .serviceChannel and are stored in the serviceChannels folder.

Version 

Introduced in API version 44.0.

Special Access Rules 

This type is available only if Omni-Channel is enabled in your org.

Fields 

acwExtensionDuration 

  • Type: int
  • Required: No
  • Description: The maximum length of time, measured in seconds, an agent can spend on After Conversation Work (ACW) each time they extend the timer. You must set this field if hasAcwExtensionEnabled is set to true. Specify a value from 10 through 3600. Available only for service channels of type Messaging or Voice.

afterConvoWorkMaxTime 

  • Type: int

  • Required: No

  • Introduced: API version 52.0

  • Description: The maximum length of time, measured in seconds, an agent has to complete After Conversation Work (ACW). You must set this field if hasAfterConvoWorkTimer is set to true. Specify a value from 10 through 3600. Available only for service channels of type Messaging or Voice.

    For service channels of type Voice, this field is available in API version 52.0 and later. For service channels of type Messaging, this field is available in API version 56.0 and later.

capacityModel 

  • Type: CapacityModel (enumeration of type string)
  • Required: No
  • Introduced: API version 65.0
  • Description: The method that determines when an agent’s capacity for a work item is released. With the status-based capacity routing model, work remains assigned and applied to an agent’s capacity until the work is completed or reassigned to a different agent. In contrast, the tab-based capacity routing model releases an agent’s capacity when a work tab is closed in the service console. Values are:
  • Possible values:
    • STATUS_BASED
    • TAB_BASED

doesCheckCapOnOwnerChange 

  • Type: boolean
  • Required: No
  • Introduced: API version 65.0
  • Description: Indicates whether the override for capacity check is on (true) or not (false). If it is on, when work is reassigned to another agent it overrides it and keeps the work assigned to the specific agent. The default value is false.

doesCheckCapOnStatusChange 

  • Type: boolean
  • Required: No
  • Introduced: API version 65.0
  • Description: Indicates whether the override for capacity check is on (true) or not (false). If it is on, when work is reopened it is re-assigned to a specific agent. The default value is false.

doesMinimizeWidgetOnAccept 

  • Type: boolean
  • Required: No
  • Introduced: API version 48.0
  • Description: Automatically minimizes the Omni-Channel widget when an agent accepts work.

hasAcwExtensionEnabled 

  • Type: boolean
  • Required: No
  • Introduced: API version 56.0
  • Description: If set to true, agents can extend their After Conversation Work (ACW) time. Available only if hasAfterConvoWorkTimer is set to true. If set to true, you must also set the acwExtensionDuration and maxExtensions fields. The default value is false. Available only for service channels of type Messaging or Voice.

hasAfterConvoWorkTimer 

  • Type: boolean

  • Required: No

  • Introduced: API version 52.0

  • Description: If set to true, After Conversation Work (ACW) time can be configured for the channel. If set to true, you must also set the afterConvoWorkMaxTime field. The default value is false. Available only for service channels of type Messaging or Voice.

    For service channels of type Voice, this field is available in API version 52.0 and later. For service channels of type messaging, this field is available in API version 56.0 and later.

hasAutoAcceptEnabled 

  • Type: boolean
  • Required: No
  • Description: Work items in a service channel open automatically in the agent’s workspace so that the agent doesn’t have to manually accept them.

interactionComponent 

  • Type: string
  • Required: No
  • Description: The custom console component to open in the footer when an agent accepts a work item from this service channel.

isInterruptible 

  • Type: boolean
  • Required: No
  • Introduced: API version 57.0
  • Description: Indicates whether a work item consumes interruptible or primary capacity. The default value is false. Available in API version 57.0 and later when the Interruptible Capacity feature is enabled.

label 

  • Type: string
  • Required: Yes
  • Description: Required. The label of the service channel.

maxExtensions 

  • Type: string
  • Required: No
  • Introduced: API version 56.0
  • Description: The maximum number of times an agent can extend their After Work Conversation (ACW) time. Specify a value from 1 through 10. You must set this field if hasAcwExtensionEnabled is set to true. Available only for service channels of type Messaging or Voice.

relatedEntityType 

  • Type: string
  • Required: Yes
  • Description: Required. The type of object that’s associated with this service channel.

secondaryRoutingPriorityField 

  • Type: string
  • Required: No
  • Introduced: API version 47.0
  • Description: The name of the standard field or the ID of the custom field that is used for secondary routing priority.

serviceChannelFieldPriorities 

  • Type: ServiceChannelFieldPriority[]
  • Required: No
  • Introduced: API version 47.0
  • Description: Required. A set of mappings between secondary routing priority field values and priorities.

serviceChannelStatusFieldMappings 

  • Type: ServiceChannelStatusFieldMapping[]
  • Required: No
  • Introduced: API version 65.0
  • Description: Represents the value to indicate completed and in-progress work item status in the Status-Based Capacity routing model.

statusField 

  • Type: string
  • Required: No
  • Introduced: API version 65.0
  • Description: The field that you use to track work status in the Status-Based capacity routing model. Use ServiceChannelStatusField to specify the values that indicate completed and in-progress work-item status.

ServiceChannelFieldPriority Type 

Represents a secondary routing priority field value mapping.

Version 

Introduced in API version 47.0.

Fields 

priority 

  • Type: int
  • Required: Yes
  • Description: Required. The priority number assigned to the mapped field value.

type 

  • Type: picklist
  • Required: Yes
  • Description: Required. The work item status assigned to the mapped field value. Possible types are IN_PROGRESS, PAUSED, COMPLETED.

value 

  • Type: string
  • Required: Yes
  • Description: Required. The value of the secondaryRoutingPriorityField field defined in the parent ServiceChannel.

ServiceChannelStatusFieldMapping Type 

Fields 

type 

  • Type: StatusFieldMappingType (enumeration of type string)
  • Required: Yes

value 

  • Type: string
  • Required: Yes

Declarative Metadata Sample Definition 

The following is an example of a ServiceChannel component.

1<?xml version="1.0" encoding="UTF-8"?>
2<ServiceChannel xmlns="http://soap.sforce.com/2006/04/metadata">
3    <doesMinimizeWidgetOnAccept>true</doesMinimizeWidgetOnAccept>
4    <interactionComponent>ConsoleComponent</interactionComponent>
5    <label>Case</label>
6    <relatedEntityType>Case</relatedEntityType>
7    <secondaryRoutingPriorityField>Status</secondaryRoutingPriorityField>
8    <serviceChannelFieldPriorities>
9        <priority>1</priority>
10        <value>Escalated</value>
11    </serviceChannelFieldPriorities>
12    <serviceChannelFieldPriorities>
13        <priority>2</priority>
14        <value>On Hold</value>
15    </serviceChannelFieldPriorities>
16</ServiceChannel>

The following is an example package.xml that references the previous definition.

1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3    <types>
4        <members>*</members>
5        <name>ServiceChannel</name>
6    </types>
7    <version>44.0</version>
8</Package>

Wildcard Support in the Manifest File 

This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.