Question Status

Nickster asked a question on 23 Mar 2015 6:34 PM

Is there a way to specify a new LedgerDimension to a journal line using Business connector?

I can use the following command to use a previously used account combo from DimensionAttributeValueCombination list but how do I specify individual segments and values if a combination has not been entered in to ax before?

LedgerJournalTrans.set_Field("LedgerDimension", 5637157274);

Sohaib Cheema responded on 24 Mar 2015 12:31 AM

I can give you hint, but cannot help you, with "line by line" of code, due to shortage of time.

you should use AxdDimensionUtil::getLedgerAccountId

This will automatically create Financial dimensions combinations for you.

Another thing you should do all validations of Dimensions and Main account inside AX. Also write logic to create combinations for account+dimensions inside AX. Just call those from outside AX , as a method or functions and provide parameters