microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
780 stars 618 forks source link

[Extensibility Request] Default Dimension as columns in Config. Package #27400

Open vlkov opened 2 weeks ago

vlkov commented 2 weeks ago

Describe the request

In codeunit "Config. XML Exchange" I Suggest renaming this function GetDefaultDimensionKeyFieldIdFromTable and adding the event at the end of the function OnAfterGetDefaultDimensionKeyFieldIdFromTable(TableID: Integer; var ResultFieldId: Integer)

Additional context

If the table has a default dimension we need to subscribe to the one event Config. Management OnAfterIsDefaultDimTable But it's not enough when Default Dimension is mapped by the not first key field because in codeunit "Config. XML Exchange" function GetPrimaryKeyFieldNumber returns the first key fieldid.

We need it for tables that have an assigned Default Dimension, but where the assigned field with code[20] is not the first primary key. For example, we have a table with a GUID primary key and use a non-primary unique field(with type code[20] ) to link the default dimension. Internal work item: AB#554765

nikolakukrika commented 1 week ago

Adding a comment here, please doublecheck if the XML exchange is used for both Excel and the .RsFiles. If we implement the extensibility it should work for both Rapidstart files.