How to find Default Financial Dimensions (X++)
Hi, in this post i am goint to show you two ways of how to select default dimension values in AX 2012.   1) Traditional select codes:  You can do a "while select"  or just "select firstonly"  for your needs. You can get all dimensions with "while select"    and just one with the "select firstonly"  as you know. But if you are going to use "select firstonly", you must specify the dimension attribute first.   Let's assume that you need to find the default financial dimensions of a specific customer record;   Select Firstonly:   Below code shows you the Dimension Attribute name and value of the selected customer.        CustTable                               custTable;     DimensionAttributeValueSetItem          DimensionAttributeValueSetItem;     DimensionAttributeValue                 DimensionAttributeValue;     DimensionAttribute                      DimensionAttribute;          select  firstonly custTable             where  custT...