---
schema_version: "1"
id: f027d0f5ecabde0b625bf56ddc73f8867d26b6f352531ccda058021bb05509e3
title: ConnectApi.OrderShipmentCollection
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_order_shipment_collection.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_order_shipment_collection.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f6b73570d680902d1ab90aa75d6968a3a7625ebdf5896e43c86be1be4598bcb9
description: Collection of order shipments.
---
# ConnectApi.OrderShipmentCollection

Collection of order shipments.

<table class="featureTable sort_table" summary="">
          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d1119098e27">Property Name</th>
              <th class="featureTableHeader vertical-align-top " id="d1119098e29">Type</th>
              <th class="featureTableHeader vertical-align-top " id="d1119098e31">Description</th>
              <th class="featureTableHeader vertical-align-top " id="d1119098e33">Available Version</th>
            </tr>
          </thead>
          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d1119098e27" data-title="Property Name"><samp class="codeph apex_code">count</samp></td>
              <td class="entry" headers="d1119098e29" data-title="Type">Integer</td>
              <td class="entry" headers="d1119098e31" data-title="Description">Total number of records returned in the collection.</td>
              <td class="entry" headers="d1119098e33" data-title="Available Version">52.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1119098e27" data-title="Property Name"><samp class="codeph apex_code">currentPageToken</samp></td>
              <td class="entry" headers="d1119098e29" data-title="Type">String</td>
              <td class="entry" headers="d1119098e31" data-title="Description">Token identifying the current page of order shipments.</td>
              <td class="entry" headers="d1119098e33" data-title="Available Version">52.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1119098e27" data-title="Property Name"><samp class="codeph apex_code">currentPageUrl</samp></td>
              <td class="entry" headers="d1119098e29" data-title="Type">String</td>
              <td class="entry" headers="d1119098e31" data-title="Description">URL to the current page of order shipments.</td>
              <td class="entry" headers="d1119098e33" data-title="Available Version">52.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1119098e27" data-title="Property Name"><samp class="codeph apex_code">nextPageToken</samp></td>
              <td class="entry" headers="d1119098e29" data-title="Type">String</td>
              <td class="entry" headers="d1119098e31" data-title="Description">Token identifying the next page of order shipments.</td>
              <td class="entry" headers="d1119098e33" data-title="Available Version">52.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1119098e27" data-title="Property Name"><samp class="codeph apex_code">nextPageUrl</samp></td>
              <td class="entry" headers="d1119098e29" data-title="Type">String</td>
              <td class="entry" headers="d1119098e31" data-title="Description">URL to the next page of order shipments.</td>
              <td class="entry" headers="d1119098e33" data-title="Available Version">52.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1119098e27" data-title="Property Name"><samp class="codeph apex_code">previousPageToken</samp></td>
              <td class="entry" headers="d1119098e29" data-title="Type">String</td>
              <td class="entry" headers="d1119098e31" data-title="Description">Token identifying the previous page of order shipments.</td>
              <td class="entry" headers="d1119098e33" data-title="Available Version">52.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1119098e27" data-title="Property Name"><samp class="codeph apex_code">previousPageUrl</samp></td>
              <td class="entry" headers="d1119098e29" data-title="Type">String</td>
              <td class="entry" headers="d1119098e31" data-title="Description">URL to the previous page of order shipments.</td>
              <td class="entry" headers="d1119098e33" data-title="Available Version">52.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1119098e27" data-title="Property Name"><samp class="codeph apex_code">shipments</samp></td>
              <td class="entry" headers="d1119098e29" data-title="Type">
                <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list" title="Contains methods for the List collection type.">List</a>&lt;<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_order_shipment.htm" title="Order shipment."><samp class="codeph apex_code">ConnectApi.​OrderShipment</samp></a>&gt;
              </td>
              <td class="entry" headers="d1119098e31" data-title="Description">Collection of order shipments.</td>
              <td class="entry" headers="d1119098e33" data-title="Available Version">52.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1119098e27" data-title="Property Name"><samp class="codeph apex_code">sortOrder</samp></td>
              <td class="entry" headers="d1119098e29" data-title="Type"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/connectAPI_enums.htm#OrderShipmentSortEnum"><samp class="codeph apex_code">ConnectApi.​OrderShipmentSort</samp></a></td>
              <td class="entry" headers="d1119098e31" data-title="Description">Sort order for order shipments. Values
                are:<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph apex_code">ExpectedDeliveryDateAsc</samp>—Sorts by the oldest expected delivery date.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">ExpectedDeliveryDateDesc</samp>—Sorts by the most recent expected delivery date.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">ShipmentNumberAsc</samp>—Sorts by shipment number in ascending order (0–9).
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">ShipmentNumberDesc</samp>—Sorts by shipment number in descending order (9–0).
                  </li>
                </ul>
              </td>
              <td class="entry" headers="d1119098e33" data-title="Available Version">52.0</td>
            </tr>
          </tbody>
        </table>