This tool allows you to take existing Dynamics NAV objects that have been exported in .txt format and convert them into the new .al format. The .al format is used when developing extensions for Dynamics 365 Business Central. Converting the objects consists of following two steps:

  • Exporting the objects from C/SIDE in a cleaned format.
  • Converting the objects to the new syntax.

For doing the below you will be needing Business Central Development Shell installed in your PC

Solution:

The Txt2Al conversion tool allows you to take existing Dynamics NAV objects that have been exported in .txt format and convert them into the new .al format. The .al format is used when developing extensions for Dynamics 365 Business Central. Converting the objects consists of following steps

Implement Output:

1. From NAV 16 / NAV 18 take Object Export (.txt) file.
File->Export->Save

2. Create 4 Sub-Folders in New Folder named Convertnvtobc.
a. AL
b. BLANK
c. DELTA
d. MOD

3. In MOD Folder Copy the .text File that you exported from NAV.
4. In BLANK Folder delete the files which are present. After deleting copy your text file here again.
5. Open Administrator Dynamics NAV Development Shell.
6. Pass this command in Development Shell to Compare the file.
[Open the path as showed below in your folder, then copy that path in Development Shell].
Compare-NAVApplicationObject -OriginalPath “D:\Convertnvtobc\BLANK\” -ModifiedPath “D:\Convertnvtobc\MOD\” -ExportToNewSyntax -DeltaPath “D:\Convertnvtobc\DELTA\”

7. In DELTA Folder the. DELTA file will be created automatically.
8. Now open the path where your Business Central is installed.
9. Copy the path of your Business Central installation in Development Shell.
Example is as shown below:
C:\Program Files (x86)\Microsoft Dynamics 365 Business Central\130\RoleTailored Client

10. Now to convert Delta To AL, copy this command in Development Shell.
.\Txt2Al.exe –source=”D:\Convertnvtobc\DELTA\” –target=”D:\Convertnvtobc\AL\”
11. Now you can see Al Objects in AL Folder.

Conclusion:
Thus, the Txt2Al conversion tool allows you to take existing Dynamics NAV objects that have been
exported in .txt format and convert them into the new .al format. The .al format is used when
developing extensions for Dynamics 365 Business Central.

We are Microsoft Gold partner (VAR) selling, implement and support Microsoft Dynamics 365 products and solutions.

Follow Us

Email: enquiry@dhyey.com
Phone: +91 265 2379990