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
- _vendAccount
Type: VendAccount Extended Data Type
The vendor account number.
- _categoryId
Type: RecId Extended Data Type
The record ID of the EcoResCategory record.
- _vendDataAreaId
Type: DataAreaId Extended Data Type
The data area in the VendTable table that is associated to the _vendAccount parameter.
- _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.