Dec 07, 2019
1 min read

D365 Business Central : Getting Extension Version from AL

To get your extension version, we can use NavApp and ModuleInfo.
Share:

To get your extension version, we can use NavApp and ModuleInfo.

local procedure GetAppVersion(): Text
  var
    ModuleInfo: ModuleInfo;
    AppVersion: Version;
  begin
    NavApp.GetCurrentModuleInfo(ModuleInfo);
    AppVersion := ModuleInfo.AppVersion();
    Exit(Format(AppVersion));
  end;

Related Posts