LogisticsEntityLocationFormHandler.primaryLocationExist Method [AX 2012]
Determines whether any primary location exists for an entity other than the specified location record ID.
Syntax
public boolean primaryLocationExist(
TableId _entityLocationTableId,
RecId _entity,
LogisticsLocationRecId _location,
[boolean _isPostal,
LogisticsElectronicAddressMethodType _methodType,
boolean _showErrorWhenPrivate])
Run On
Called
Parameters
- _entityLocationTableId
Type: TableId Extended Data Type
The table ID of a mapping table in the LogisticsEntityLocationMap map.
- _entity
Type: RecId Extended Data Type
The record ID of the mapping table in the LogisticsEntityLocationMap map.
- _location
Type: LogisticsLocationRecId Extended Data Type
The record ID of the location that is used to find other primary locations.
- _isPostal
Type: boolean
A Boolean value that specifies whether to check for postal locations.
- _methodType
Type: LogisticsElectronicAddressMethodType Enumeration
A value that specifies the communication type that is used to check for other primary communication information.
- _showErrorWhenPrivate
Type: boolean
Return Value
Type: boolean
true if a primary location exists other than the specified location record ID for the specified entity; otherwise, false.