DirParty::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
ServerParameters
- _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 TableA LogisticsElectronicAddress table buffer that is based on the search criteria.
Show: