Hi Folks,
Often we need to create Journals via X++ code as part of customization or integration and dimension is always the tricky part of this. How to validate the dimension combination value as per rules set in the system.
I am sharing a code sample to do the same, check this code and you may need to replace some dimension names or add/remove dimensions as per your requirement. The below code sample will validate
1. Main account
2. Individual dimension value
3. Deactivated dimension values
4. Dimension combination