LogisticsLocationEntity::findPostalAddress Method [AX 2012]
Finds a postal address for the specified common for a specified LogisticsLocationRoleType sequencing, that is, private, primary, or public.
Syntax
server public static LogisticsPostalAddress findPostalAddress(
Common _common,
LogisticsLocationRoleType _roleType,
[TransDateTime _transDateTime,
boolean _usePrimary])
Run On
Server
Parameters
- _common
Type: Common Table
An entity for which to find a postal address.
- _roleType
Type: LogisticsLocationRoleType Enumeration
A role of the postal address.
- _transDateTime
Type: TransDateTime Extended Data Type
A DateTime value for when the postal address is valid.
- _usePrimary
Type: boolean
A Boolean value that indicates whether to return the primary location for the entity.
Return Value
Type: LogisticsPostalAddress Table
A LogisticsPostalAddress record for the entity.