DimensionDefaultingEngine::createLedgerDimension Method [AX 2012]

Creates a ledger dimension for the specified combination.

Syntax

client server public static LedgerDimensionAccount createLedgerDimension(
    RecId _ledgerDimensionId, 
    List _dimensionSources, 
   [int _mainAccountDefaultingPosition])

Run On

Called

Parameters

  • _ledgerDimensionId
    Type: RecId Extended Data Type
    The ID of the DimensionAttributeValueCombination record that specifies the initial dimension values.
  • _dimensionSources
    Type: List Class
    A list of maps of dimension specifiers.
  • _mainAccountDefaultingPosition
    Type: int
    An index that specifies the default dimension values for the main account that must be applied at this position; optional.

Return Value

Type: LedgerDimensionAccount Extended Data Type
The ID of the DimensionAttributeValueCombination record.

Remarks

If the combination already exists, the existing ledger dimension will be returned.

Use the null Nothing nullptr unit a null reference (Nothing in Visual Basic) date to skip date checking against the combination.

See Also

Reference

DimensionDefaultingEngine Class