InventTable::getDistinctProductRecId Method
Retrieves the record ID of a EcoResDistinctProduct or EcoResDistinctProductVariantrecord.
Syntax
client server public static EcoResDistinctProductRecId getDistinctProductRecId(ItemId _itemId, InventDim _inventDim)
Run On
ClientOrServer
Parameters
- _itemId
Type: ItemId Extended Data Type
An item ID to use to find a EcoResDistinctProduct record.
- _inventDim
Type: InventDim Table
An InventDim record to use to find a EcoResDistinctProductVariant record.
Return Value
Type: EcoResDistinctProductRecId Extended Data Type
The record ID of a EcoResDistinctProduct or EcoResDistinctProductVariant record if found; otherwise, 0.
Remarks
This method searches for products in the context of the current company.