---
schema_version: "1"
id: 2ea39e1b5428665f795d4456b18ea4336d185d194466bb9d723c4ec3444251ce
title: ConnectApi.FindRoutesWithFewestSplitsOutputRepresentation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_find_routes_with_fewest_splits_output.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_find_routes_with_fewest_splits_output.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 334b9e07f3b37125310bae6dae54e173079ff79f06a842571309e97848e04684
description: A list of inventory location combinations that can fulfill an order without exceeding the maximum number of shipments.
---
# ConnectApi.FindRoutesWithFewestSplitsOutputRepresentation

A list of inventory location combinations that can fulfill an order without exceeding the maximum number of shipments.

Subclass of [ConnectApi.BaseOutputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_base_output.htm "Base Order Management output class.").

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| targetLocations | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[ConnectApi.​AvailableLocation​OutputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_available_location_output.htm "A set of inventory locations that can combine to fulfill an order.")\> | Each element of the list is a set of inventory locations that together can fulfill the order being routed. | 51.0 |

#### See Also

- [findRoutesWithFewestSplits(findRoutesWithFewestSplitsInputRepresentation)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_Routing_static_methods.htm#apex_ConnectAPI_Routing_findRoutesWithFewestSplits_1 "Returns combinations of inventory locations that can fulfill an order within a specified limit of shipment splits. By default, checks up to 1,000,000 potential routes, returning a maximum of 10,000 results.")