In AX2009 we coud post finanical dimensions against accountType CUST, with customer account no.
In AX2012 the code we found to do this is as follows....
"LedgerJournalACType" ), accountType ,[accountDisplayValue,account]);
How to specify financial dimensions for the customer?
For example when we post to main accounts we can specify in the container a number of dimension atributes and values. These are stored in dimension list and get appended to the dimension container. How do we do this for posting to CUST and customer account number? Thanks vewry much to who can provide some direction here!!
RecId result;
result = AxdDimensionUtil::getMultiTypeAccountId(enumName2Id(
dimensions = [accountDisplayValue, account,dimensionCount]; // the count is how many dimension AVP to follow iterator = new ListIterator(dimensionList);
while (iterator.more())
{ v = iterator.value(); dimensionName = conPeek(v,1);
valueCode = conPeek(v,2);
dimensions += [dimensionName, valueCode]; // this is where the dimension AVP are appended iterator.next(); } result = AxdDimensionUtil::getLedgerAccountId(dimensions); return (result);