web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

altpgen.exe missing from AL Language extension 18.x. Is the NuGet package the supported way?

(4) ShareShare
ReportReport
Posted on by 321

Hi all,

I’m trying to add a custom Choice column from the Dataverse Account table to a Business Central integration (CRM Account table extension and Integration Field Mapping). I’m following the AL Table Proxy Generator workflow.

What I see

  • AL Language extension 18.1.2842859 in VS Code on Windows. The bin folder has no win32 subfolder, and a full search of the extension folder finds no altpgen.exe.
  • In AL 16.x, the same tool was in bin\win32\altpgen.exe, and I had ran it successfully with -project, -packagecachepath, -serviceuri, -clientid, -redirecturi, -entities, -baseid and -tabletype.
  • altool --help has no command for generating Dataverse proxy tables.
  • The Microsoft Learn page “Create proxy tables for Dataverse” (updated October 2026) now says the tool is distributed in the NuGet package Microsoft.Dynamics.BusinessCentral.Development.Tools.Altpgen and that you run altpgen from the Windows target-framework folder after restoring it.

My questions

  1. Is the NuGet package now the only supported way to get altpgen? Can anyone share me link i can refer to to install and run further steps, Was it removed from the AL Language extension on purpose?
  2. Which version of the NuGet package should I use?
  3. Does the package version need to match my AL extension or Business Central version (BC 28.5)?
  • Suggested answer
    YUN ZHU Profile Picture
    104,206 Super User 2026 Season 2 on at

    I checked and confirmed—it's definitely gone. 

    If you're in a rush, you can try the tool below to generate this table.

    https://alcopilotskills.com/docs/skills/bc-cds-page-generator/SKILL

    PS: Dynamics 365 Business Central: AL Copilot Skills Collection (VS Code extension)

    https://yzhums.com/75296/

     

    Hope this helps.

    Thanks.

    ZHU

     

  • Suggested answer
    OussamaSabbouh Profile Picture
    20,990 Super User 2026 Season 2 on at

    Hello Mahek,

    Yes according to the current Microsoft documentation, altpgen is now distributed through the Microsoft.Dynamics.BusinessCentral.Development.Tools.Altpgen NuGet package, so you should no longer depend on finding altpgen.exe inside the VS Code AL extension. For your AL 18.1 tooling, I would use the latest stable 18.1.x AltPGen package rather than a 30.x preview; the tool version does not need to match BC 28.5 exactly. What matters for the generated proxy is that -packagecachepath points to the symbols downloaded for the BC version you are targeting, because AltPGen uses those symbols when generating/comparing tables. Restore the NuGet package, locate altpgen.exe under its Windows target-framework folder, and run it with the same parameters you used previously. Microsoft does not explicitly state that its removal from the VS Code extension was intentional, but NuGet is now the documented distribution method.

     

    Regards,
    Oussama Sabbouh

  • HassanNazeer Profile Picture
    228 on at

    Yes, the NuGet package is now the supported way. The Learn page was updated to say the AL Table Proxy Generator ships in Microsoft.Dynamics.BusinessCentral.Development.Tools.Altpgen, and you run altpgen from the Windows target-framework folder inside it. It is no longer bundled with the AL Language extension, so searching the extension folder won't find it.

    You don't need a .NET project or a dotnet tool install. The package is self-contained (altpgen.exe plus all its DLLs), so you can just download and unzip it:

    $ver = "18.1.43.24897"
    Invoke-WebRequest "https://www.nuget.org/api/v2/package/Microsoft.Dynamics.BusinessCentral.Development.Tools.Altpgen/$ver" -OutFile "$env:TEMP\altpgen.zip"
    Expand-Archive "$env:TEMP\altpgen.zip" -DestinationPath "C:\Tools\altpgen\$ver" -Force
    cd "C:\Tools\altpgen\$ver\lib\net8.0-windows7.0"
    .\altpgen -project:"C:\MyApp" -packagecachepath:"C:\MyApp\.alpackages" -serviceuri:"https://yourorg.crm.dynamics.com" -clientid:<app-id> -redirecturi:"http://localhost" -entities:account -baseid:50100 -tabletype:CDS
    

    (Or use the "Download package" link on nuget.org and rename the .nupkg to .zip. It's the same file.)

    On your other questions:

    1. Which version: the package versions follow the AL Language extension numbers (16.x, 17.x, 18.x). For AL 18.1 I'd use the latest stable 18.1.43.24897. Skip the 30.0.x-beta builds; those are pre-release for the next wave.
    2. Does it need to match BC 28.5: not exactly. The generator compares against the symbols in your -packagecachepath, so download fresh symbols from your 28.5 environment into .alpackages before you run it.
    3. Runtime: the lib\net8.0-windows7.0 build needs the .NET 8 Desktop Runtime (x64). There is also a lib\net10.0-windows7.0 build if you have .NET 10 instead. It's Windows only.
    4. Same parameters as before (-project, -packagecachepath, -serviceuri, -clientid, -redirecturi, -entities, -baseid, -tabletype). The Entra app still needs delegated user_impersonation on Dynamics CRM, with the redirect URI registered under "Mobile and desktop applications".

    For your Choice column, add the field to your CRM Account table extension (or regenerate the account proxy), then add the Integration Field Mapping.

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-al-table-proxy-generator

  • HassanNazeer Profile Picture
    228 on at

    Small correction to my reply above: I called the package "self-contained", which is not quite right. The folder has altpgen.exe and all its DLLs, so there is nothing else to install from NuGet, but it still needs the .NET 8 Desktop Runtime (Microsoft.WindowsDesktop.App 8.0) on the machine, as the runtimeconfig.json in the package shows. I have not tested it on a machine without the runtime.

  • Suggested answer
    YUN ZHU Profile Picture
    104,206 Super User 2026 Season 2 on at

    Update: Dynamics 365 Business Central: The AL Table Proxy Generator is distributed in the Microsoft.Dynamics.BusinessCentral.Development.Tools.Altpgen NuGet package (altpgen.exe missing from AL Language extension)

    https://yzhums.com/76918/

     

    Thanks.

    ZHU

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 569 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 375 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 228 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans