D365 Business Central : Getting Extension Version from AL

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;

thatnavguy

Experienced NZ-based NAV Developer and Consultant with 15+ years of experience leading multiple IT projects, performing business analyst, developing, implementing, and upgrading Dynamics NAV and Business Central. Passionate to deliver solution that focuses on user-friendly interface while keeping high standard of compliance with the needs.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *