EcoResProductCategory::findByProductIdAndCategoryId Method
Finds the specified record in the EcoResProductCategory table by using the product and category ID.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
client server public static EcoResProductCategory findByProductIdAndCategoryId(
RefRecId _productRecId,
EcoResCategoryId _categoryId,
[boolean _forUpdate])
Microsoft Dynamics AX 2012 R2 (SYS)
client server public static EcoResProductCategory findByProductIdAndCategoryId(
RefRecId _productRecId,
EcoResCategoryId _categoryId,
[boolean _forUpdate])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
client server public static EcoResProductCategory findByProductIdAndCategoryId(RefRecId _productRecId, EcoResCategoryId _categoryId)
Run On
Called
Parameters
- _productRecId
Type: RefRecId Extended Data Type
The record ID of the product.
- _categoryId
Type: EcoResCategoryId Extended Data Type
The category ID of the product.
- _forUpdate
Type: boolean
A Boolean value that indicates whether the update is enabled.
Return Value
Type: EcoResProductCategory Table
A record in the EcoResProductCategory table; otherwise, an empty record.