RHRMReport_T2::findPostalAddressByRole Method [AX 2012]

Finds a postal address for a party of a certain purpose.

server public static LogisticsPostalAddress findPostalAddressByRole(DirPartyRecId _partyRecId, [LogisticsLocationRoleType _role])

Run On

Server

Parameters

_partyRecId
Type: DirPartyRecId Extended Data Type
The DirPartyRecId value of the party to which the address is related.
_role
Type: LogisticsLocationRoleType Enumeration
The LogisticsLocationRoleType value of the purpose of the address for which to search; optional.

Return Value

Type: LogisticsPostalAddress Table
A LogisticsElectronicAddress table buffer that is based on the search criteria.

If no primary address is found, this method returns the first record.

Show: