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

Use Txt2AL tool in Powershell?

(7) ShareShare
ReportReport
Posted on by 1,122

The txt2AL tool works fine in cmd line, but it would be SO much nicer to be able to put it in my Powershell script for exporting objects, creating deltas, etc.

Any suggestions?

In Command line...this works:

C:\Program Files (x86)\Microsoft Dynamics 365 Business Central\140\RoleTailored Client>txt2al.exe --Source="C:\temp\ConvertToAL\Delta" --Target="C:\temp\ConvertToAL\AL" --ExtensionStartId=50000

But it doesn't work in PowerShell...

cd 'C:\Program Files (x86)\Microsoft Dynamics 365 Business Central\140\RoleTailored Client';
.\txt2al -source 'C:\temp\ConvertToAL\Delta' -target 'C:\temp\ConvertToAL\AL' -rename -type Table -ExtensionStartId 50000;

#also tried
.\txt2al -source 'C:\temp\ConvertToAL\Delta' -target 'C:\temp\ConvertToAL\AL' -ExtensionStartId 50000;

#also tried
.\txt2al -source 'C:\temp\ConvertToAL\Delta' -target 'C:\temp\ConvertToAL\AL';

#also tried
.\txt2al.exe -source 'C:\temp\ConvertToAL\Delta' -target 'C:\temp\ConvertToAL\AL';

#also tried
.\txt2al -source 'C:\temp\ConvertToAL\Delta\' -target 'C:\temp\ConvertToAL\AL\';

But they all return the help error. (not so helpful!) pastedimage1631906964279v1.png

I have the same question (0)
  • Suggested answer
    Microsoft Dynamics 365 Business Central Profile Picture
    Microsoft Employee on at

    Hi Greg

    I would start with this Link www.waldo.be/.../

  • Suggested answer
    Andrey Baludin Profile Picture
    3,943 on at

    I created convert.bat file with next code:

    txt2al --source=C:\Users\youruser\Documents\CAL\toconvert --target=C:\Users\youruser\Documents\CAL\converted --rename --extensionStartID 50000
    
    pause

    After that put this file into folder with txt2al.exe file.

    so you export cal files into *\toconvert folder, run convert.bat file and get result into *\converted folder

  • TAHER_El_Mehdi Profile Picture
    836 on at
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    21,573 Super User 2026 Season 1 on at
  • Suggested answer
    YUN ZHU Profile Picture
    98,349 Super User 2026 Season 1 on at
    Hi, hope the following can give you some hints as well.
    Dynamics 365 Business Central: Converting C/AL objects to .al format (Txt2Al Conversion Tool)
     
    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,965 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,125 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 961 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans