QueueRoutingConfig

Represents the settings that determine how work items are routed to agents.

Parent Type 

This type extends Metadata and inherits its fields.

File Suffix and Directory Location 

ServicePresenceStatus components have the suffix .queueRoutingConfig and are stored in the queueRoutingConfigs 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 

capacityPercentage 

  • Type: double
  • Required: No
  • Description: The percentage of an agent’s capacity for work items that’s consumed by a specific type of work item from this service channel. Voice calls must have a capacity percentage of 100. If an agent receives a voice call, the agent won’t receive new work items until the call ends, because at that point the agent’s capacity will have reached 100%.

capacityType 

  • Type: CapacityType (enumeration of type string)

  • Required: No

  • Description: The setting applies for PSRs (PendingServiceRouting) that are created and managed by the system.

    • When set to INHERITED, the value of the Interruptible check box or value set on the Service Channel applies.
    • When set to INTERRUPTIBLE, the generated PSR has the isInterruptible flag set to true.
    • When set to NOT INTERRUPTIBLE, the generated PSR has the isInterruptible flag set to false.
    • When not set, its behavior is equivalent to INHERITED.

capacityWeight 

  • Type: double
  • Required: No
  • Description: The amount of an agent’s capacity for work items that’s consumed by a work item from this service channel. For example, if an agent has a capacity of 6, and cases are assigned a capacity weight of 2, an agent can be assigned up to 3 cases before the agent is at capacity and can’t receive new work items. Voice calls must use the entire capacity weight.

dropAdditionalSkillsTimeout 

  • Type: int

  • Required: No

  • Description: The number of seconds to elapse before additional skills are dropped from Omni-Channel routing. In skills-based routing, you can set some skills to Additional Skill. After the timeout elapses, a skill marked as Additional Skill is dropped from Omni-Channel routing and the case is routed to the best-matched agent, even if the agent doesn’t have all the skills.

    If CustomRequestedDateTime is set in the PendingServiceRouting object, DropAdditionalSkillsTimeout uses CustomRequestedDateTime as the start time. If CustomRequestedDateTime + DropAdditionalSkillsTimeout has already passed, Omni-Channel immediately drops the additional skills after the pending service request is created.

isAttributeBased 

  • Type: boolean
  • Required: No
  • Description: Indicates whether this routing configuration is used with skills-based routing rules (true) or not (false).

label 

  • Type: string
  • Required: Yes
  • Description: Required. The label of the presence status.

pausedCapacityPercentage 

  • Type: double
  • Required: No
  • Introduced: API version 64.0
  • Description: The percentage of a rep’s capacity that’s consumed when this work item is paused. The paused capacity feature is available with status-based capacity and Enhanced Omni-Channel only.

pausedCapacityWeight 

  • Type: double
  • Required: No
  • Introduced: API version 64.0
  • Description: The amount of a rep’s capacity that’s consumed when this work item is paused. The paused capacity feature is available with status-based capacity and Enhanced Omni-Channel only.

pushTimeout 

  • Type: int
  • Required: No
  • Description: The number of seconds set for push timeout. 0 is returned when push timeout isn’t enabled.

queueOverflowAssignee 

  • Type: string
  • Required: No
  • Description: The ID of the queue that’s set as the Overflow Assignee.

routingModel 

  • Type: RoutingModel (enumeration of type string)
  • Required: Yes
  • Description: Required. The routing type that determines how work items are routed (pushed) to agents.
  • Possible values:
    • LEAST_ACTIVE
    • MOST_AVAILABLE
    • EXTERNAL_ROUTING

routingPriority 

  • Type: int
  • Required: Yes
  • Description: Required. The priority in which work items from the service channels that are related to this routing configuration are routed to agents. Work items from routing configurations that have lower priority values (for example, 0) are routed to agents first.

skills 

  • Type: QueueRoutingConfigSkill[]
  • Required: No
  • Description: Default skills associated with the routing configuration. Work is routed using a combination of rules and default skills.

userOverflowAssignee 

  • Type: string
  • Required: No
  • Description: The ID of the user that’s set as the Overflow Assignee.

QueueRoutingConfigSkill Type 

Represents default skills associated with the routing configuration.

Fields 

skill 

  • Type: string
  • Required: No
  • Description: Skill used to route a work item.

Declarative Metadata Sample Definition 

The following is an example of a QueueRoutingConfig component.

1<?xml version="1.0" encoding="UTF-8"?>
2<QueueRoutingConfig xmlns="http://soap.sforce.com/2006/04/metadata">
3  <capacityWeight>1.0</capacityWeight>
4  <label>Case Routing</label>
5  <pushTimeout>120</pushTimeout> 
6  <queueOverflowAssignee>queueOverflow</queueOverflowAssignee>
7  <routingModel>LEAST_ACTIVE</routingModel>
8  <routingPriority>1</routingPriority>
9  <capacityType>INHERITED</capacityType>
10  <pausedCapacityWeight>0.25</pausedCapacityWeight>
11</QueueRoutingConfig>

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>QueueRoutingConfig</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.