Clone and refactor reports
For complex or radical changes within a report, it is required to start from scratch or, more frequently, to clone and refactor an existing report. The first part of the task (clone an existing report) is straightforward since AL source code is available in different places and easily downloadable. With the on-premises version, you can find them in the DVD installation folder in the \Applications\BaseApp\Source
directory. Just unzip the file named Base Application.Source.zip
and search for the standard report you need to clone.The very same source file can be downloaded from online repositories using BcContainerHelper power-shell library and using the command Get-BcArtifactUrl to get the url of the desired online or on-premises build. Then simply use Download-Artifacts cmdlet fed with the url and after the download is complete, you can find the downloaded file in c:\bcartifacts.cache folder.Another (this time unofficial) way to download the source code is to...