GetTargetStorageLocations(String,String,String,String) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The GetTargetStorageLocations() method retrieves a list of all entities, movable or non-movable, that contain inventory.
For this overload of the method, the optional entity filter is identified by its entity name and site name.
public static DataSet GetTargetStorageLocations(
string woId,
string operId,
string entName,
string siteName
)
Parameters
- woId
- Optional filter parameter. Holds a job's work order ID, for filtering the retrieved entities. Refer to the Remarks for more information.
- operId
- Optional filter parameter. Holds a job's operation ID, for filtering the retrieved entities. Refer to the Remarks for more information.
- entName
- Optional filter parameter. Holds an entity name. Refer to the Remarks for more information.
- siteName
- Optional filter parameter. Holds an entity site name. Refer to the Remarks for more information.
Return Value
Returns a DataSet that contains records for movable and non-movable storage entities, as specified by the filter parameters (refer to the Remarks for more information). If no matching records are found, an empty DataSet is returned.
The columns of the returned DataSet are described below.
|
Column Name |
Description |
|---|---|
|
ent_id |
An integer that is the ID of the entity, from the Storage_Exec.ent_id column that contains inventory of serialized parts. |
|
ent_name |
A string that is the name of the entity, from the ent.ent_name column linked to this entity (Storage_Exec.ent_id). |
For input parameters that are not to be included as a filter, pass a null.
If a non-null value for the work order ID, operation ID, entity name, and entity site name are supplied, then the entities retrieved will be limited to the set of entities to which any job conforming to these filter parameters is scheduled or run, the immediate children of those entities, and any movable entities located at any of those entities that are identified in the previous step.
If any of the supplied filter parameters is null, then all entities, regardless of whether they are movable or not, that contain inventory are returned.