QueueRoutingConfig defines how Omni-Channel routes work items to agents, including routing priority, capacity consumption, interruptibility, and default skills. The type is available only when Omni-Channel is enabled in the org.
A routing configuration is separate from the queue or messaging channel that uses it. Queue and MessagingChannel components select a configuration through their queueRoutingConfig element. Within the configuration, routing priority determines which work goes first, capacity settings determine how much work an agent can hold, and interruptibility determines whether work can be interrupted. These settings serve different purposes.
Key Elements
| Element | What the Element Controls |
|---|---|
routingModel |
Required routing model. Allowed values are LEAST_ACTIVE, MOST_AVAILABLE, and EXTERNAL_ROUTING. |
routingPriority |
Required integer that determines routing precedence. Work associated with lower numeric values routes first. |
capacityWeight, capacityPercentage
|
The capacity consumed by a work item, expressed as capacity units or a percentage. Voice calls must consume the agent's entire capacity weight or have a capacity percentage of 100. |
capacityType |
Controls interruptibility for system-created and system-managed pending routing records. Allowed values are INHERITED, INTERRUPTIBLE, and NOT_INTERRUPTIBLE. Omission behaves like INHERITED. |
pausedCapacityWeight, pausedCapacityPercentage
|
Capacity consumed while a work item is paused. These settings require both status-based capacity and Enhanced Omni-Channel. |
isAttributeBased |
Indicates whether the configuration is used with skills-based routing rules: true or false. |
skills |
Collection of default skill entries. Each entry contains a skill reference to Skill metadata. Routing combines rules with these default skills. |
dropAdditionalSkillsTimeout |
Seconds before skills marked as Additional Skill are dropped from routing requirements. It does not remove every skill requirement. |
pushTimeout |
Push timeout in seconds. A retrieved value of 0 means push timeout is not enabled. |
queueOverflowAssignee |
Overflow queue, documented as a queue record ID. The official example uses a name-like value, so its identifier format needs care during cross-org deployment. |
userOverflowAssignee |
Record ID of the user selected as the overflow assignee. |
Behavior and Constraints
Routing priority and capacity
routingPriority controls precedence between work associated with different routing configurations. A lower number routes first; it does not grant an agent more capacity.
capacityWeight must be interpreted against the agent's capacity. For example, a work item with weight 2 consumes one-third of an agent's capacity of 6. That agent can hold three such items before reaching capacity.
Voice calls must consume the agent's entire capacity weight or use capacityPercentage of 100. While the call occupies that capacity, the agent receives no new work items until the call ends.
Paused-capacity values do not enable paused-capacity behavior by themselves. Both status-based capacity and Enhanced Omni-Channel must be in use for pausedCapacityWeight and pausedCapacityPercentage to apply.
Interruptibility
A PendingServiceRouting record, often called a PSR, represents work pending routing. capacityType controls interruptibility for PSRs created and managed by the system, not the amount of capacity a work item consumes.
-
INHERITEDuses the Interruptible setting on the Service Channel. OmittingcapacityTypehas the same effect. -
INTERRUPTIBLEsets the generated PSR'sisInterruptibleflag totrue. -
NOT_INTERRUPTIBLEsets that flag tofalse.
Skills and timeout timing
The skills collection contains QueueRoutingConfigSkill helper entries. Each entry supplies a skill reference. These entries belong to the routing configuration; they are not separate deployable components. Omni-Channel routes work using a combination of routing rules and these default skills.
dropAdditionalSkillsTimeout relaxes matching by dropping skills marked as Additional Skill after the specified number of seconds. This allows routing to the best-matched agent even when that agent lacks all the original skills. It is not a timeout for removing all required skills.
The runtime PSR's CustomRequestedDateTime can change when that timeout starts. When the field is set, the deadline is CustomRequestedDateTime plus dropAdditionalSkillsTimeout. If that deadline has already passed, Omni-Channel drops the additional skills immediately after creating the pending service request. Unexpectedly immediate skill relaxation therefore requires checking the PSR timestamp as well as the metadata timeout.
pushTimeout is separate from additional-skills timing. In a retrieved configuration, pushTimeout of 0 means push timeout is not enabled; it does not describe when skills are dropped.
Deployment and Retrieval
Metadata API files use the .queueRoutingConfig suffix and reside in the queueRoutingConfigs directory. Salesforce source-format projects use filenames such as Case_Routing.queueRoutingConfig-meta.xml in that directory.
In package.xml, use the type name QueueRoutingConfig. The type supports the wildcard member * for deployment and retrieval manifests. It inherits fullName from the base Metadata type. The configuration requires label, routingModel, and routingPriority.
Enable Omni-Channel in the destination org before deploying this type. For a skills-based configuration rejected as unavailable even though enableOmniChannel is enabled, enableOmniSkillsRouting under omniChannelSettings is a reported diagnostic lead, not a universal prerequisite for every routing configuration.
Keep the configuration distinct from its dependencies. A queue's queueRoutingConfig selects the routing configuration, while the configuration's queueOverflowAssignee selects an overflow queue. Similarly, the embedded skill entries are part of this component, but their referenced Skill components are separate metadata.
Overflow identity needs particular care when moving between orgs. Both overflow fields are documented as record IDs, but Salesforce's example places queueOverflow in queueOverflowAssignee. That example does not establish support for a queue developer name or a portable cross-org identifier. Do not assume a name-like retrieved value and a record ID are interchangeable.
A successful Metadata API deployment does not by itself establish change-set or unlocked-package support. The reported deployment and packaging experiences below distinguish those paths.
Relationships
The configuration points outward to an overflow queue and default skills. Queues and messaging channels point inward to select the configuration they use. The Service Channel's Interruptible setting also affects behavior when capacityType is inherited, but that is not a direct element reference from this type.
References
Referenced By
-
MessagingChannel:queueRoutingConfig. -
Queue:queueRoutingConfig.
Documentation Inconsistencies
The Salesforce type documentation contains several inconsistencies that matter when interpreting or writing XML:
-
Component identity: The file-location paragraph names
ServicePresenceStatus, and thelabeldescription refers to a presence status. The component described here isQueueRoutingConfig, with suffix.queueRoutingConfigand directoryqueueRoutingConfigs. -
Paused-capacity capitalization: The field table displays
PausedCapacityPercentageandPausedCapacityWeight. The exposed element names arepausedCapacityPercentageandpausedCapacityWeight; the XML example also uses the lowercase initial letter forpausedCapacityWeight. -
Interruptibility spelling: The prose displays
NOT INTERRUPTIBLE, but the enumeration value isNOT_INTERRUPTIBLE. -
Skill collection naming: The field table labels the helper array
QueueRoutingConfigSkill. The exposed collection element isskills, whose entries containskill. -
Overflow identifier: The field definition says
queueOverflowAssigneeis a queue ID, while the example usesqueueOverflow. The example does not resolve which identifier format is portable between orgs.
Reported Issues
-
A scratch-org deployment was rejected as unavailable despite Omni-Channel being enabled. In December 2021, a report involving skills included
enableOmniChannelbut notenableOmniSkillsRouting. The answer proposed enabling the latter underomniChannelSettings. This was a proposed diagnosis, not confirmation that allQueueRoutingConfigdeployments require skills-based routing. Scratch-org deployment discussion. -
Source-format deployment was reported to create routing configurations successfully. In March 2025, a contributor described manually adding
queueRoutingConfigsand files named{routingname}.queueRoutingConfig-meta.xml, then deploying them. Although the discussion concerns change sets, this answer describes a file-based deployment rather than confirming change-set support. Routing configuration deployment discussion. -
Package uninstallation reportedly failed on related components in an Omni-Channel package. In May 2024, a contributor to an unlocked-package discussion reported being unable to delete
SkillandLiveChatButtonmetadata during uninstallation. Their component set includedQueueRoutingConfig. The report does not establish thatQueueRoutingConfigitself was undeletable or that every Omni-Channel package has the same problem. Omni-Channel packaging discussion. -
Finding a queue's routing priority was described as a two-step data query. In October 2018, an answer used Salesforce Object Query Language (SOQL) to obtain
Group.QueueRoutingConfigIdfor queue records, then queryQueueRoutingConfig.RoutingPriorityusing those IDs. This concerns runtime records and record IDs, not metadata component names. Queue priority lookup discussion.
Common Questions
How do I retrieve or deploy QueueRoutingConfig?
Use QueueRoutingConfig in package.xml; wildcard member * is supported. Metadata API files belong in queueRoutingConfigs with suffix .queueRoutingConfig. Source-format files use .queueRoutingConfig-meta.xml. Omni-Channel must be enabled in the org.
Why is QueueRoutingConfig unavailable when Omni-Channel is already enabled?
For configurations involving skills, check enableOmniSkillsRouting under omniChannelSettings. A December 2021 answer proposed it as the missing setting in a scratch-org deployment. That report does not make it a requirement for every routing configuration.
Does capacityType change how much agent capacity a work item consumes?
No. capacityType controls interruptibility for system-managed PSRs. capacityWeight and capacityPercentage control capacity consumption. Omitting capacityType inherits the Service Channel's Interruptible setting.
Why are additional skills dropped immediately instead of after the configured timeout?
Check CustomRequestedDateTime on the runtime PSR. If that timestamp plus dropAdditionalSkillsTimeout is already in the past, Omni-Channel drops additional skills immediately after creating the pending service request.
Can queueOverflowAssignee contain a queue developer name?
The field is documented as a queue record ID, but Salesforce's example uses the name-like value queueOverflow. That discrepancy does not establish developer-name support or a portable cross-org identifier format.