Hello,
Very often I see developers doing a lot of code just to retrieve the keys and values of Financial Dimensions. To do that, you just need to list the values of DefaultDimensionView view, like you can see below.

1
2
3
4
5
6
7
8
9
10
11
12
static void showFinancialDimensions(Args _args)
{
    PurchTable              purchTable = PurchTable::find("INT-000060");
    DefaultDimensionView    defaultDimensionView;
    ;
 
    while select defaultDimensionView
      where defaultDimensionView.DefaultDimension == purchTable.DefaultDimension
    {
        info(strFmt("Dimension's name: %1 - Value: %2", defaultDimensionView.Name, defaultDimensionView.DisplayValue));
    }
}

Thank you Pedro!

[]s
Pichler