A free program from Microsoft that provides developers with the tools, resources, and sandbox environments needed to build solutions for Microsoft 365.
Hi Mahek,
Thank you for sharing the detailed information about adding a custom Choice column from the Dataverse Account table to your Business Central integration, and for confirming that altpgen.exe is no longer available in AL Language extension 18.1.
This happens because the AL Table Proxy Generator has been intentionally moved out of the AL Language extension and is now distributed separately as a NuGet package.
1/ To clarify your questions:
- Supported method: Yes, the NuGet package Microsoft.Dynamics.BusinessCentral.Development.Tools.Altpgen is now the supported way to obtain altpgen. Therefore, the bin\win32 folder is no longer included in the extension.
- Package version: We recommend using the latest stable 18.x version of the package, so that it aligns with your AL Language extension 18.1.
- Version matching: The package version should follow your AL Language extension major version rather than your Business Central version. As a result, an 18.x package is suitable for your BC 28.5 environment.
2/ Steps to install and run altpgen
- Firstly, open the Altpgen package page on NuGet, select the Versions tab, choose the latest stable 18.x version, and then click Download package.
- Next, rename the downloaded file extension from .nupkg to .zip, and then extract it to a local folder on your computer.
- After that, open the extracted folder and go to the Windows target framework subfolder, where altpgen.exe is located.
- Then, run altpgen.exe from PowerShell using the same parameters you used successfully in AL 16.x.
- Finally, add the generated proxy table to your AL project, and then continue with your CRM Account table extension and Integration Field Mapping.
For your reference that you can concern:
- AL Table Proxy Generator
- Customizing an Integration with Microsoft Dataverse
- AL Development Tools Package
- Altpgen package on NuGet
This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
I hope this helps point you in the right direction. If you have any further questions or updates, please feel free to let me know.
Best regards.