DimensionDefaultingEngine::getLedgerDimensionFromAccountAndDim Method [AX 2012]
Retrieves the ID for the DimensionAttributeValueCombination record that represents a combination of the specified main account and default dimension information.
Syntax
server public static LedgerDimensionAccount getLedgerDimensionFromAccountAndDim(
RecId _mainAccountId,
RecId _accountStructureId,
[DimensionDefault _defaultDimensionId])
Run On
Server
Parameters
- _mainAccountId
Type: RecId Extended Data Type
The ID of the main account to use.
- _accountStructureId
Type: RecId Extended Data Type
The ID of the account structure to use.
- _defaultDimensionId
Type: DimensionDefault Extended Data Type
The ID of a default dimension set to use; optional;
Return Value
Type: LedgerDimensionAccount Extended Data Type
The ID of the DimensionAttributeValueCombination record.
Remarks
Use the null Nothing nullptr unit a null reference (Nothing in Visual Basic) date to skip date checking against the combination.