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

  • _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.

Return Value

Type: DirPartyLocation Table
The DirPartyLocation record.

See Also

Reference

DirPartyLocation Table