GetDestInvLocs(String,String,String,String) Method
- Last UpdatedNov 06, 2025
- 3 minute read
The GetDestInvLocs() method retrieves a list of all entities, movable and non-movable, that contain inventory.
For this overload of the method, the optional entity filter is identified by its entity name and site name.
Parameters
- entName
- Optional filter parameter. Holds the name of an entity. If a valid entity is identified by the entName and siteName parameters, any movable entities and their descendants located at this entity are included in the dataset
- siteName
- Optional filter parameter. Holds the site name of an entity. If a valid entity is identified by the entName and siteName parameters, any movable entities and their descendants located at this entity are included in the dataset
- woId
- Optional filter parameter. Holds the ID of a work order for a job. Used with the operId parameter to specify entities for which the corresponding job has been scheduled or run. Any movable entities located at any of these entities will be included in the returned DataSet.
- operId
- Optional filter parameter. Holds the ID of an operation for a job. Used with the woId parameter to specify entities for which the corresponding job has been scheduled or run. Any movable entities located at any of these entities will be included in the returned DataSet
Return Value
Returns a DataSet that contains a record for each entity that contains inventory, according to the filter parameters that were passed. If all of the filters are null, or 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 an 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). |
- A DataSet is returned is returned which contains the list of columns specified in the outputs section above. The DataSet contains a list of all moveable and non movable entities that contains inventory.
- If a non null value for the work order and operation is supplied, then the entities retrieved will be limited to the set of entities to which any job conforming to these selections is scheduled or run, and any movable entities located at any of these entities identified in the previous step are included in the DataSet .
- If a non null value for the entity is supplied, any movable entities and their descendants located at this entity are included in the DataSet .
- If all of the supplied filters are null, then an empty DataSet is returned to the caller of this method. If no rows are found for the specified parameters, an empty DataSet will be returned. Any exceptions thrown by the middleware is bubbled back to the caller who is calling this method.