RetailCreateBarCodes.validateAndCreateProductBarCode Method [AX 2012]
Method is used to validate the bar code setup and create InventItemBarCode records.
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
public void validateAndCreateProductBarCode([boolean _suppressMessageDialog])
Microsoft Dynamics AX 2012 R2 (SYS)
public void validateAndCreateProductBarCode([boolean _suppressMessageDialog])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
public void validateAndCreateProductBarCode()
Run On
Called
Parameters
- _suppressMessageDialog
Type: boolean
Boolean value to skip the user interference while running test class
Exceptions
Exception | Condition |
---|---|
Error | Throws error if barcode setup is blank. -or- Throws error if product is blank. |