DirPartyLocation::findOrCreate Method
Finds an existing DirPartyLocation record, based on the party and location, or creates the record if it is not found.
Syntax
server public static DirPartyLocation findOrCreate(
DirPartyRecId _party,
LogisticsLocationRecId _location,
[boolean _isPostal,
boolean _forupdate,
LogisticsLocationRecId _parentLocation])
Run On
Server
Parameters
- _party
Type: DirPartyRecId Extended Data Type
The DirPartyRecId value.
- _location
Type: LogisticsLocationRecId Extended Data Type
The LogisticsLocationRecId value.
- _isPostal
Type: boolean
A Boolean value that indicates whether the record is a postal address.
- _forupdate
Type: boolean
A Boolean value that indicates whether to select the record for update.
- _parentLocation
Type: LogisticsLocationRecId Extended Data Type
The LogisticsLocationRecId parent location value.
Return Value
Type: DirPartyLocation Table
The DirPartyLocation record.