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?
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