Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Finds a postal address for a party of a certain purpose.
Syntax
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.
Remarks
If no primary address is found, this method returns the first record.