How-To Use Where-Used in Base App

Imagine you are building an extension on some standard tables and you would like to find out where some procedures or fields are used in the whole base app.


There are several reasons why you should look after some background business logic.


Jump into your extension you are developing at and select that procedure or field you are looking for:

Hit Shift+Alt+F12 or look for "Find All References" in your context menu.


But: You are going to find nothing!

So let's make it work!


Follow these steps:

  • So let's try to compile the base app and see if it works. Download your specified artifact:

Get-BcArtifactUrl -type onprem -country 'de' -select Latest

  • This command will show up your artifact url:

https://bcartifacts.azureedge.net/onprem/19.2.32968.33504/de

  • Let's download the latest Business Central DE-localization:

Download-Artifacts -artifactUrl https://bcartifacts.azureedge.net/onprem/19.2.32968.33504/de -includePlatform

  • On your local drive, system will create this folder where you can jump in, to get the base app:

C:\bcartifacts.cache\onprem\19.2.32968.33504\platform\Applications\BaseApp\Source\Base Application.Source.zip

  • Create a local repository and extract all files from that base-zip file into any folder. In this example it's a folder called "app" in my local project "DE-latest":


That app-folder contains now all *.al files:




  • Take the System App, Application App and the System Application App and put them into the ".alpackages" folder:


From here:

"C:\bcartifacts.cache\onprem\19.2.32968.33504\platform\Applications\system application\source\Microsoft_System Application.app"
"C:\bcartifacts.cache\onprem\19.2.32968.33504\platform\Applications\Application\Source\Microsoft_Application.app"
"C:\bcartifacts.cache\onprem\19.2.32968.33504\platform\ModernDev\program files\Microsoft Dynamics NAV\190\AL Development Environment\System.app"

To:


  • Copy all assemblies

From here: