RetailDimensionsManager::checkAndCreateDimension Method [AX 2012]

Create a new dimension in the appropriate table, if it doesn't exist yet.

client server public static void checkAndCreateDimension(
    TableId _dimensionTableId, 
    FieldId _dimensionNameFieldId, 
    Name _dimensionValue)

Run On

Called

Parameters

_dimensionTableId
Type: TableId Extended Data Type
Id of the dimension table to search and create new values in.
_dimensionNameFieldId
Type: FieldId Extended Data Type
Id of the unique field.
_dimensionValue
Type: Name Extended Data Type
Dimension value that is checked for existance.

The method tries to find records with _dimensionValue in the appropriate field. If no records found, creates a new one.

Show: