HcmAppBasketContactInfoFormHandler.primaryLocationExist Method [AX 2012]
Determines whether any primary location exists for an entity other than the supplied 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 the 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, which is used to find other primary locations.
- _isPostal
Type: boolean
A Boolean value that indicates to check for postal locations.
- _methodType
Type: LogisticsElectronicAddressMethodType Enumeration
A value that indicates the communication type, which is used to check for other primary communication information.
- _showErrorWhenPrivate
Type: boolean
Return Value
Type: boolean
true if another primary location exists other than the supplied location record ID for the supplied entity; otherwise, false.