Share via


VendCategory::findOrCreateVendorCategory Method

Finds or creates the specified record in the VendCategory table for the specified vendor, category, and data area.

Syntax

server public static VendCategory findOrCreateVendorCategory(
    VendAccount _vendAccount, 
    RecId _categoryId, 
    DataAreaId _vendDataAreaId, 
   [boolean _callDoInsert])

Run On

Server

Parameters

  • _callDoInsert
    Type: boolean
    A Boolean value that indicates whether the doInsert or insert method is used to create the new record.

Return Value

Type: VendCategory Table
A record of the VendCategory table if found; otherwise, an empty record.

See Also

Reference

VendCategory Table