Hi, How can I get Application ID of my current running app in business central ?I have used Session.ApplicationIdentifier() but it gives 'NAV' as result not the appId which is like 63ca2fa4-4f03-4f2b-a980-172fef340d1w this. Can anyone help ?
NavApp.GetCurrentModuleInfo is what you need. It returns a ModuleInfo object that represents information about an application consumable from AL.
From this object you can retrieve the ID by using YourModuleInfo.Id();
try using Navapp.GetCurrentModuleInfo();
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/navapp/navapp-getcurrentmoduleinfo-method
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Nimsara Jayathilaka. 3,878
Rishabh Kanaskar 3,405
Sumit Singh 2,865