---
schema_version: "1"
id: 18306f58dce681dbdb7bb3f96bb129bd70ad85ed0ace0f40f1de65af22d9edc5
title: QueueRoutingConfig
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_queueroutingconfig.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_queueroutingconfig.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9661f7ce7560f78ccc2effe4402e7f336d02639abd2f1ee0a731e3d4a70de37b
description: Represents the settings that determine how work items are routed to agents.
---
# QueueRoutingConfig

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

This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/metadata.htm "The base class for all metadata types. You can’t edit this object. A component is an instance of a metadata type.") metadata type and inherits its fullName field.

## File Suffix and Directory Location

ServicePresenceStatus components have the suffix .queueRoutingConfig and are stored in the queueRoutingConfigs folder.

## Version

QueueRoutingConfig components are available in API version 44.0 and later.

## Special Access Rules

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

## Fields

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d781856e107">Field Name</th>

              <th class="featureTableHeader  " id="d781856e110">Field Type</th>

              <th class="featureTableHeader  " id="d781856e113">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d781856e107" data-title="Field Name"><span class="keyword parmname">capacityPercentage</span></td>

              <td class="entry" headers="d781856e110" data-title="Field Type">double</td>

              <td class="entry" headers="d781856e113" data-title="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%.</td>

            </tr>

            <tr>
              <td class="entry" headers="d781856e107" data-title="Field Name"><span class="keyword parmname">capacityType</span></td>

              <td class="entry" headers="d781856e110" data-title="Field Type">CapacityType</td>

              <td class="entry" headers="d781856e113" data-title="Description">The setting applies for PSRs (<a class="xref" href="https://help.salesforce.com/s/articleView?id=service.omnichannel_psr_lifecycle.htm&amp;type=5&amp;language=en_US" target="_blank">PendingServiceRouting</a>) that are created and
                managed by the system. <ul class="ul bulletList">
                  <li class="li">When set to <samp class="codeph nolang">INHERITED</samp>, the value of the
                    Interruptible check box or value set on the Service Channel applies. </li>

                  <li class="li">When set to <samp class="codeph nolang">INTERRUPTIBLE</samp>, the generated
                    PSR has the <span class="keyword parmname">isInterruptible</span> flag set to true. </li>

                  <li class="li">When set to NOT <samp class="codeph nolang">INTERRUPTIBLE</samp>, the
                    generated PSR has the <span class="keyword parmname">isInterruptible</span> flag set to
                    false.</li>

                  <li class="li">When not set, its behavior is equivalent to <samp class="codeph nolang">INHERITED</samp>.</li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d781856e107" data-title="Field Name"><span class="keyword parmname">capacityWeight</span></td>

              <td class="entry" headers="d781856e110" data-title="Field Type">double</td>

              <td class="entry" headers="d781856e113" data-title="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.</td>

            </tr>

            <tr>
              <td class="entry" headers="d781856e107" data-title="Field Name"><span class="keyword parmname">dropAdditionalSkillsTimeout</span></td>

              <td class="entry" headers="d781856e110" data-title="Field Type">int</td>

              <td class="entry" headers="d781856e113" data-title="Description">
                <p class="p">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
                  <strong class="ph uicontrol">Additional Skill</strong>. After the timeout elapses, a skill
                  marked as <strong class="ph uicontrol">Additional Skill</strong> 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.
                </p>
                <p class="p">If CustomRequestedDateTime is set in the <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_pendingservicerouting.htm" target="_blank">PendingServiceRouting object</a>,
                  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.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d781856e107" data-title="Field Name"><span class="keyword parmname">isAttributeBased</span></td>

              <td class="entry" headers="d781856e110" data-title="Field Type">boolean</td>

              <td class="entry" headers="d781856e113" data-title="Description">Indicates whether this routing configuration is used with skills-based routing
                rules (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>).</td>

            </tr>

            <tr>
              <td class="entry" headers="d781856e107" data-title="Field Name"><span class="keyword parmname">label</span></td>

              <td class="entry" headers="d781856e110" data-title="Field Type">string</td>

              <td class="entry" headers="d781856e113" data-title="Description">Required. The label of the presence status.</td>

            </tr>

            <tr>
              <td class="entry" headers="d781856e107" data-title="Field Name"><span class="keyword parmname">PausedCapacityPercentage</span></td>

              <td class="entry" headers="d781856e110" data-title="Field Type">double</td>

              <td class="entry" headers="d781856e113" data-title="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. Available in API version 64.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d781856e107" data-title="Field Name"><span class="keyword parmname">PausedCapacityWeight</span></td>

              <td class="entry" headers="d781856e110" data-title="Field Type">double</td>

              <td class="entry" headers="d781856e113" data-title="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. Available in API version 64.0 and later.</td>

            </tr>

            <tr>
              <td class="entry" headers="d781856e107" data-title="Field Name"><span class="keyword parmname">pushTimeout</span></td>

              <td class="entry" headers="d781856e110" data-title="Field Type">int</td>

              <td class="entry" headers="d781856e113" data-title="Description">The number of seconds set for push timeout. <samp class="codeph nolang">0</samp> is returned when push timeout isn’t enabled.</td>

            </tr>

            <tr>
              <td class="entry" headers="d781856e107" data-title="Field Name"><span class="keyword parmname">queueOverflowAssignee</span></td>

              <td class="entry" headers="d781856e110" data-title="Field Type">string</td>

              <td class="entry" headers="d781856e113" data-title="Description">The ID of the queue that’s set as the Overflow Assignee.</td>

            </tr>

            <tr>
              <td class="entry" headers="d781856e107" data-title="Field Name"><span class="keyword parmname">skills</span></td>

              <td class="entry" headers="d781856e110" data-title="Field Type">
                <a class="xref" href="#QueueRoutingConfigSkill">QueueRoutingConfigSkill</a>[]
              </td>

              <td class="entry" headers="d781856e113" data-title="Description">Default skills associated with the routing configuration. Work is routed using
                a combination of rules and default skills. </td>

            </tr>

            <tr>
              <td class="entry" headers="d781856e107" data-title="Field Name"><span class="keyword parmname">routingModel</span></td>

              <td class="entry" headers="d781856e110" data-title="Field Type">RoutingModel (enumeration of type string)</td>

              <td class="entry" headers="d781856e113" data-title="Description">Required. The routing type that determines how work items are routed (pushed)
                to agents. Possible values are:<ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">LEAST_ACTIVE</samp></li>

                  <li class="li"><samp class="codeph nolang">MOST_AVAILABLE</samp></li>

                  <li class="li"><samp class="codeph nolang">EXTERNAL_ROUTING</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d781856e107" data-title="Field Name"><span class="keyword parmname">routingPriority</span></td>

              <td class="entry" headers="d781856e110" data-title="Field Type">int</td>

              <td class="entry" headers="d781856e113" data-title="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.</td>

            </tr>

            <tr>
              <td class="entry" headers="d781856e107" data-title="Field Name"><span class="keyword parmname">userOverflowAssignee</span></td>

              <td class="entry" headers="d781856e110" data-title="Field Type">string</td>

              <td class="entry" headers="d781856e113" data-title="Description">The ID of the user that’s set as the Overflow Assignee.</td>

            </tr>

          </tbody>

        </table>

## QueueRoutingConfigSkill

Represents default skills associated with the routing configuration.

## Fields

| Field Name | Field Type | Description |
| --- | --- | --- |
| skill | string | Skill used to route a work item. |

## Declarative Metadata Sample Definition

The following is an example of a QueueRoutingConfig component.

<?xml version="1.0" encoding="UTF-8"?>
<QueueRoutingConfig xmlns="http://soap.sforce.com/2006/04/metadata">
  <capacityWeight\>1.0</capacityWeight\>
  <label\>Case Routing</label\>
  <pushTimeout\>120</pushTimeout\> 
  <queueOverflowAssignee\>queueOverflow</queueOverflowAssignee\>
  <routingModel\>LEAST\_ACTIVE</routingModel\>
  <routingPriority\>1</routingPriority\>
  <capacityType\>INHERITED</capacityType\>
  <pausedCapacityWeight\>0.25</pausedCapacityWeight\>
</QueueRoutingConfig\>

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

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types\>
        <members\>\*</members\>
        <name\>QueueRoutingConfig</name\>
    </types\>
    <version\>44.0</version\>
</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](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/file_based_zip_file.htm).