LogisticsLocationEntity::findLocation Method [AX 2012]
Finds a location for the specified common for a specified LogisticsLocationRoleType sequencing, that is, private, primary, or public.
Syntax
server public static LogisticsLocationEntity findLocation(
Common _common,
LogisticsLocationRoleType _roleType,
[TransDateTime _transDateTime,
boolean usePrimary])
Run On
Server
Parameters
- _common
Type: Common Table
The entity for which to find the location.
- _roleType
Type: LogisticsLocationRoleType Enumeration
The role of the location.
- _transDateTime
Type: TransDateTime Extended Data Type
The DateTime value for when the location is valid.
- usePrimary
Type: boolean
A Boolean value that specifies whether to return the primary location for the entity.
Return Value
Type: LogisticsLocationEntity Class
A LogisticsLocationEntity object that corresponds to the location that was found.