GetTargetStorageLocations(String,String,Nullable<Int32>) 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 ID.
'Declaration
Public Overloads Shared Function GetTargetStorageLocations( _
ByVal woId As String, _
ByVal operId As String, _
ByVal entId As Nullable(Of Integer) _
) As DataSet
'Usage
Dim woId As String
Dim operId As String
Dim entId As Nullable(Of Integer)
Dim value As DataSet
value = StorageExec.GetTargetStorageLocations(woId, operId, entId)
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.
- entId
- Optional filter parameter. Holds an entity ID. 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, and entity ID 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.