---
schema_version: "1"
id: 4555d83bd49a98493e115a55f0f8086f9078b699c8a7474d40ba7721ce33ae58
title: AgentWork
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_agentwork.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_agentwork.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: dbe5f5debea7eb6efea4eb20d81d8577df48562ae62ac273b898d6e1c046272a
description: Represents a work assignment that’s been routed to an agent. If the work is transferred to another agent, a new AgentWork record is created. This object is available in API version 32.0 and later.
---
# AgentWork

Represents a work assignment that’s been routed to an agent. If the work is transferred to another agent, a new AgentWork record is created. This object is available in API version 32.0 and later.

## Supported Calls

create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()

## Special Access Rules

To access this object, [Omni-Channel](https://help.salesforce.com/articleView?id=omnichannel_intro.htm&type=5&language=en_US) must be enabled.

## Fields

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


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

              <th class="featureTableHeader  " id="d109077e111">Details</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">AcceptDateTime</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">TypedateTime</dt>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates when the work item was accepted.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">ActiveTime</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">int</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The amount of time an agent is actively working on a
                    work item in their console. Active time is tracked only
                    for tasks routed using the tab-based capacity model.
                    It's tracked only when the work tab is open and in focus
                    in the console. If the agent switches console tabs, the
                    time spent on the other tabs isn't counted. Active time
                    continues to count if you switch to a new browser tab or
                    window. Active time stops when the agent closes the work
                    item or the after conversation work time ends, whichever
                    happens first.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">AcwExtensionCount</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">int</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The number of times that an agent extended the After
                    Conversation Work (ACW) timer. This field is available
                    in API version 55.0 and later.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">AcwExtensionDuration</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">int</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The length of time (in seconds) that the After
                    Conversation Work (ACW) timer was extended each time
                    that the agent extended the timer. This field is
                    available in API version 55.0 and later.<p class="p">To find the
                      total extension duration, multiply this field by
                      <span class="keyword parmname">AcwExtensionCount</span> or use
                      <span class="keyword parmname">AfterConversationActualTime</span>.
                    </p>
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">AfterConversationActualTime</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">int</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The number of seconds an agent spent on After
                    Conversation Work (ACW) after customer contact ended.
                    This field is available in API version 52.0 and
                    later.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">AgentCapacityWhenDeclined</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">double</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The agent’s capacity when declining work, either
                    explicitly or through push timeout.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">AssignedDateTime</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">dateTime</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates when the work item was assigned to an agent</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">BotId</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The ID of the Enhanced Einstein Bot or AI agent that
                    performed the work. This is a relationship field. This
                    field is available in API version 52.0 and later.</dd>



                  <dt class="dt dlterm">Relationship Name</dt>

                  <dd class="dd">Bot</dd>



                  <dt class="dt dlterm">Relationship Type</dt>

                  <dd class="dd">Lookup</dd>



                  <dt class="dt dlterm">Refers To</dt>

                  <dd class="dd">BotDefinition</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">BotType</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <a name="dl_phn_f2j_h2c"><!-- --></a>
                <dl class="dl detailList" id="dl_phn_f2j_h2c">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Defaulted on create, Filter, Group, Nillable,
                    Restricted picklist, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates the type of bot. Valid values are:<a name="ul_dq4_j2j_h2c"><!-- --></a>
                    <ul class="ul bulletList" id="ul_dq4_j2j_h2c">
                      <li class="li">Bot. Refers to an Einstein bot. </li>

                      <li class="li">ExternalCopilot. Refers to an AI agent with whom
                        your customers can interact.</li>


                    </ul>
                  </dd>

                  <dd class="dd">The default value is Bot. This field is available in API
                    version 63.0 and later.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">CancelDateTime</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">dateTime</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates when the work item was canceled.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">CapacityModel</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Restricted picklist, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates the capacity model used to determine agent
                    capacity. Valid values are <samp class="codeph nolang">StatusBased</samp> and <samp class="codeph nolang">TabBased</samp>. This field is
                    available in API version 50.0 and later.</dd>


                </dl>

                <p class="p">A work item consumes agent capacity only if it was first assigned
                  to the agent by Omni-Channel using queues or skills.</p>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">CapacityPercentage</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">percent</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The percentage of an agent’s capacity that’s consumed
                    when this work item is in progress. Valid values are
                    from 0 to 100.</dd>

                  <dd class="dd">The agent can receive a new work item only if they have
                    enough available capacity for the item. Voice calls must
                    have a capacity percentage of <var class="keyword varname">100</var>, so
                    an agent on a call doesn’t receive new work items until
                    the call ends.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">CapacityWeight</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">double</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The amount of an agent’s capacity that’s consumed when
                    this work item is in progress.</dd>

                  <dd class="dd">For example, if cases are assigned a capacity weight of
                    <var class="keyword varname">2</var>, an agent with a capacity of
                    <var class="keyword varname">6</var> can accept up to 3 cases before
                    the agent is at capacity and can’t receive new work
                    items.
                  </dd>

                  <dd class="dd">Voice calls must use the entire capacity weight.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">CloseDateTime</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">dateTime</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates when the work item was closed.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">DeclineDateTime</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">dateTime</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Date and time when the agent declined this record.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">DeclineReason</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">string</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The provided reason for why an agent declined the work
                    request.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">ExternalBotId</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <a name="dl_ld3_xp4_52c"><!-- --></a>
                <dl class="dl detailList" id="dl_ld3_xp4_52c">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The ID of the third-party bot that handles the work
                    item. This is a relationship field. This field is
                    available in API version 64.0 and later.</dd>



                  <dt class="dt dlterm">Relationship Name</dt>

                  <dd class="dd">ExternalBot</dd>



                  <dt class="dt dlterm">Relationship Type</dt>

                  <dd class="dd">Lookup</dd>



                  <dt class="dt dlterm">Refers To</dt>

                  <dd class="dd">ExternalConversationBotDef</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">HandleTime</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">int</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The amount of time an agent had the work item open,
                    calculated by <samp class="codeph nolang">CloseDateTime</samp> – <samp class="codeph nolang">AcceptedDateTime</samp>.
                    Handle time stops when the agent closes the work item or
                    the after conversation work time ends, whichever happens
                    first. </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">IsConference</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">boolean</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates whether the agent was conferenced on the work
                    item by another agent (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false </samp>). The default value is <samp class="codeph nolang">false</samp>. Available in API
                    version 44.0 and later. This field is accessible in
                    Reports, but not via the API.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">IsInterruptible</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">boolean</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Defaulted on create, Filter, Group, Sort </dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">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. </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">IsOwnerChangeInitiated</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">boolean</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Defaulted on create, Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates whether a work item owner change triggered the
                    direct assignment of the work item to the agent. The
                    default value is <samp class="codeph nolang">false</samp>. Status-Based Capacity Model has to
                    be turned on to use this field. This field is available
                    in API version 50.0 and later.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">IsPreferredUserRequired</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">boolean</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Defaulted on create, Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates whether a work item stays with the preferred
                    user even when the user isn’t available. The default
                    value is false. This field is available in API version
                    50.0 and later.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">IsStatusChangeInitiated</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">boolean</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Defaulted on create, Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates whether a work item status change triggered
                    the direct assignment of the work item to the agent. The
                    default value is false. Status-Based Capacity Model has
                    to be turned on to use this field. This field is
                    available in API version 50.0 and later.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">IsTransfer</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">boolean</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter,Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates whether the agent received the work item
                    through transfer from another agent (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>). The default
                    value is <samp class="codeph nolang">false</samp>.
                    Available in API version 38.0 and later. This field is
                    accesible in Reports, but not via the API.</dd>


                </dl>

              </td>

            </tr>

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

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">string</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Autonumber, Defaulted on create, Filter, idLookup,
                    Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">An automatically generated ID number that identifies the
                    record.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">OriginalGroupId</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The ID of the queue that the work assignment was
                    originally routed to. This field is a relationship
                    field.</dd>



                  <dt class="dt dlterm">Relationship Name</dt>

                  <dd class="dd">OriginalGroup</dd>



                  <dt class="dt dlterm">Relationship Type</dt>

                  <dd class="dd">Lookup</dd>



                  <dt class="dt dlterm">Refers To</dt>

                  <dd class="dd">Group</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">OriginalQueueId</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The ID of the queue that the work assignment was
                    originally routed to. Due to API changes, <samp class="codeph nolang">OriginalQueueId</samp> is no
                    longer recommended. Use <samp class="codeph nolang">OriginalGroupId</samp> instead.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">OwnerId</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Defaulted on create, Filter, Group, Sort,
                    Update</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The ID of the owner of the AgentWork. This field is a
                    polymorphic relationship field. This field is available
                    in API version 50.0 and later.</dd>



                  <dt class="dt dlterm">Relationship Name</dt>

                  <dd class="dd">Owner</dd>



                  <dt class="dt dlterm">Relationship Type</dt>

                  <dd class="dd">Lookup</dd>



                  <dt class="dt dlterm">Refers To</dt>

                  <dd class="dd">Group, User</dd>


                </dl>

              </td>

            </tr>

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

              <td class="entry" headers="d109077e111" data-title="Details">
                <a name="dl_qqx_mkj_h2c"><!-- --></a>
                <dl class="dl detailList" id="dl_qqx_mkj_h2c">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">percent</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Nillable, Sort, Update</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The percentage of an agent’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. This field is available in
                    API version 62.0 and later.</dd>


                </dl>

              </td>

            </tr>

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

              <td class="entry" headers="d109077e111" data-title="Details">
                <a name="dl_wdv_4kj_h2c"><!-- --></a>
                <dl class="dl detailList" id="dl_wdv_4kj_h2c">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">double</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Defaulted on create, Filter, Nillable, Sort,
                    Update</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The amount of an agent’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. This field is available in API
                    version 62.0 and later.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">PendingServiceRoutingId</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The ID of the <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_pendingservicerouting.htm" title="Represents the routing details of a work item that’s waiting to be routed or assigned. This object is available in API version 40.0 and later.">PendingServiceRouting</a> from which the
                    AgentWork was created. This field is a relationship
                    field. This field is available in API version 50.0 and
                    later.</dd>



                  <dt class="dt dlterm">Relationship Name</dt>

                  <dd class="dd">PendingServiceRouting</dd>



                  <dt class="dt dlterm">Relationship Type</dt>

                  <dd class="dd">Lookup</dd>



                  <dt class="dt dlterm">Refers To</dt>

                  <dd class="dd">PendingServiceRouting</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">PreferredUserId</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd" id="OriginalGroupId">
                    <a name="OriginalGroupId"><!-- --></a>The ID of the preferred user to
                    handle the work. This field is a relationship field.
                    This field is available in API v46.0 and later.
                  </dd>



                  <dt class="dt dlterm">Relationship Name</dt>

                  <dd class="dd">PreferredUser</dd>



                  <dt class="dt dlterm">Relationship Type</dt>

                  <dd class="dd">Lookup</dd>



                  <dt class="dt dlterm">Refers To</dt>

                  <dd class="dd">User</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">PushTimeout</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">int</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The time limit set for an agent to respond to an item
                    before it’s pushed to another agent. The time limit is
                    measured in seconds. This field is available in API
                    version 36.0 and later.</dd>

                  <dd class="dd">Effective API version 57.0, for inbound Voice calls,
                    this field represents the time limit set for an agent to
                    respond to a call before it’s declined. The value must
                    be between 0 and 20. The value is capped at 20, so any
                    number greater than that is treated as 20 seconds. This
                    applies to the following telephony models:<ul class="ul bulletList">
                      <li class="li">Salesforce Voice with Amazon Connect</li>

                      <li class="li">Salesforce Voice with Partner Telephony from Amazon Connect</li>

                    </ul>
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">PushTimeoutDateTime</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">dateTime</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The date and time (in UTC) when the push timeout event
                    occurred. This field is available in API version 36.0
                    and later. </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">RequestDateTime</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">dateTime</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates when the work was requested.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">RoutingModel</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Restricted picklist, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Determines how incoming work items are routed to agents
                    assigned to a service channel. Possible values are: <ul class="ul bulletList">
                      <li class="li"><samp class="codeph nolang">ExternalRouting</samp></li>

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

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

                    </ul>
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">RoutingPriority</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">int</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The order in which work items from the queue that are
                    associated with the routing configuration are routed to
                    agents.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">RoutingType</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Restricted picklist, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The type of Omni-Channel routing. Possible values are: <ul class="ul bulletList">
                      <li class="li"><samp class="codeph nolang">QueueBased</samp></li>

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

                    </ul>
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">SecondaryRoutingPriority</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">int</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates the secondary routing priority.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">ServiceChannelId</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The ID of the service channel that’s associated with the
                    work assignment. This field is a relationship
                    field.</dd>



                  <dt class="dt dlterm">Relationship Name</dt>

                  <dd class="dd">ServiceChannel</dd>



                  <dt class="dt dlterm">Relationship Type</dt>

                  <dd class="dd">Lookup</dd>



                  <dt class="dt dlterm">Refers To</dt>

                  <dd class="dd">ServiceChannel</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">ShouldSkipCapacityCheck</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">boolean</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Defaulted on create, Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">Indicates whether to skip checking an agent’s available
                    capacity (<samp class="codeph java">true</samp>) or
                    not (<samp class="codeph java">false</samp>) when an
                    externally routed work item is created. This field is
                    used when agents can simultaneously handle work from
                    both Omni-Channel queues and queues using external
                    routing.</dd>

                  <dd class="dd">When <samp class="codeph java">true</samp>, the
                    receiving agent can exceed their set capacity to accept
                    the item, but they don’t receive more Omni-Channel
                    routed work. When <samp class="codeph java">false</samp>, the receiving agent can’t exceed
                    their set capacity and must have enough open capacity to
                    accept the item.</dd>

                  <dd class="dd">The default value is <samp class="codeph nolang">false</samp>.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">SpeedToAnswer</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">int</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Nillable, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The amount of time between when the work was requested
                    and when an agent accepted it.</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">Status</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">picklist</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Group, Restricted picklist, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The working status of the work item. Valid values are:<ul class="ul bulletList">
                      <li class="li">
                        <samp class="codeph nolang">Assigned</samp>
                        – The item is assigned to the agent but
                        hasn’t been opened.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">Canceled</samp>
                        – The item no longer needs to be routed.
                        For example: a chat visitor cancels their
                        Omni-Channel routed chat request before it reaches
                        an agent.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">Closed</samp>
                        – The item is closed.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">Declined</samp>
                        – The item was assigned to the agent but
                        the agent explicitly declined it.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">DeclinedOnPushTimeout</samp> – The item
                        was declined because push time-out is enabled and
                        the item request timed out with the agent.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">Opened</samp>
                        – The agent opened the item.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">Transferred</samp>–The item was
                        transferred from an agent to another agent, queue,
                        or skill.
                      </li>

                      <li class="li">
                        <samp class="codeph nolang">Unavailable</samp>
                        – The item was assigned to the agent but
                        the agent became unavailable (went offline or lost
                        connection).
                      </li>

                    </ul>
                  </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">TargetAcceptDateTime</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <a name="dl_fmk_dsr_khc"><!-- --></a>
                <dl class="dl detailList" id="dl_fmk_dsr_khc">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">dateTime</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Filter, Nillable, Sort, Update</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The date and time by when a rep must accept a work item.
                    Influences backlog ordering by prioritizing work items
                    with earlier target acceptance deadlines. The field can
                    be dynamically set using Flow for each work item during
                    the routing process. This allows for flexible
                    prioritization based on case urgency, customer tier, or
                    other business rules. Available in API version 65.0 and
                    later. </dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">TransferRequesterId</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <a name="dl_dbv_tmj_h2c"><!-- --></a>
                <dl class="dl detailList" id="dl_dbv_tmj_h2c">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Group, Nillable, Sort, Update</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The user ID of the rep who reassigned the work using the
                    Reassign action. This field is populated in reassigned
                    AgentWork records only, not the original AgentWork
                    record. This is a relationship field. This field is
                    available in API version 63.0 and later.</dd>



                  <dt class="dt dlterm">Relationship Name</dt>

                  <dd class="dd">TransferRequester</dd>



                  <dt class="dt dlterm">Relationship Type</dt>

                  <dd class="dd">Lookup</dd>



                  <dt class="dt dlterm">Refers To</dt>

                  <dd class="dd">User</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">UserId</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The ID of the user that the work item was assigned to.
                    This field is a relationship field.</dd>



                  <dt class="dt dlterm">Relationship Name</dt>

                  <dd class="dd">User</dd>



                  <dt class="dt dlterm">Relationship Type</dt>

                  <dd class="dd">Lookup</dd>



                  <dt class="dt dlterm">Refers To</dt>

                  <dd class="dd">User</dd>


                </dl>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d109077e108" data-title="Field"><span class="keyword parmname">WorkItemId</span></td>

              <td class="entry" headers="d109077e111" data-title="Details">
                <dl class="dl detailList">

                  <dt class="dt dlterm">Type</dt>

                  <dd class="dd">reference</dd>



                  <dt class="dt dlterm">Properties</dt>

                  <dd class="dd">Create, Filter, Group, Sort</dd>



                  <dt class="dt dlterm">Description</dt>

                  <dd class="dd">The ID of the object that’s routed to the agent through
                    Omni-Channel.</dd>

                  <dd class="dd">This field is a polymorphic relationship field.</dd>



                  <dt class="dt dlterm">Relationship Name</dt>

                  <dd class="dd">WorkItem</dd>



                  <dt class="dt dlterm">Relationship Type</dt>

                  <dd class="dd">Lookup</dd>



                  <dt class="dt dlterm">Refers To</dt>

                  <dd class="dd">Custom objects and these standard objects: Account,
                    Activity, Case, Claim, ClaimCoverage, ClaimRecovery,
                    Contact, ContactRequest, CustomEntityData, Incident,
                    Lead, LiveChatTranscript, MessagingSession, Opportunity,
                    Orchestration Work Items, Order, PaymentRequest,
                    PersonTraining,Referral, SocialPost, SwarmMember, and
                    VoiceCall. WorkOrder is available in version 58.0 and
                    later.</dd>


                </dl>

              </td>

            </tr>

          </tbody>

        </table>

## Usage

AgentWork records can only be deleted if they have the status Closed, Declined, or Unavailable. They can’t be deleted if their status is Assigned or Opened because they’re active in Omni-Channel.

When AgentWork records are created, they have the status Assigned. After a record is created, it’s automatically pushed to the assigned agent.

While the metadata for AgentWork indicates support for upsert() and update(), these calls aren’t used with AgentWork because none of its fields can be updated.

Apex triggers are supported with AgentWork.

## Associated Objects

This object has the following associated objects. Unless noted, they’re available in the same API version as this object.

[AgentWorkChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.") (API version 63.0)

Change events are available for the object.

[AgentWorkOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

[AgentWorkShare](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.

#### See Also

- [_Salesforce Help_: Understand the Details of the Routing Lifecycle](https://help.salesforce.com/s/articleView?id=service.omnichannel_psr_lifecycle.htm&type=5&language=en_US "
    Salesforce Help: Understand the Details of the Routing Lifecycle
    - HTML (New Window)")