RetailCatalogProductStatus::findOrCreateByCatalogProduct Method
Finds or creates the record in the RetailCatalogProductStatus by a catalog product.
Syntax
client server public static RetailCatalogProductStatus findOrCreateByCatalogProduct(RefRecId _catalogProductRecId, [boolean _forUpdate])
Run On
Called
Parameters
- _catalogProductRecId
Type: RefRecId Extended Data Type
The catalog product record ID.
- _forUpdate
Type: boolean
A boolean value.
Return Value
Type: RetailCatalogProductStatus Table
A record in the RetailCatalogProductStatus if a catalog product can be found; otherwise, an empty record.