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

Community site session details

Session Id :
Business Central forum

How to create package and import/install my extension(*.fob file) in Dynamics 365 Business Central Cloud ?

(0) ShareShare
ReportReport
Posted on by 989

Hi Expert ,

I have no idea about how NAV extension will be worked for dynamics 365 business central . I am familiar with dynamics NAV On-premises versions extensions. I had uploaded .fob file in on-premise version from development environment .Previously i have created a package file (.navx ) from NAV 2017/2018 by follow the below process :

Process in 2017 for Multitenant NAV:

Demo2 Database is my Customize objects Demo1 Database is my base objects which is not modified .


1) Export Select modified base Objects and new Objects as txt file (File Name - Custom.txt) from Demo2 Database and ServerInstance : DynamicsNAV100, using below filters in Folder (C:\Users\souvik\Desktop\Surajit\).
Tables - 33064461|33064462|33064463|33064464|33064465|33064472
Pages - 300|33064461|33064462|33064463|33064464|33064465|33064473|33064478
Codeunit - 33064470
2) Export Selected base Objects as txt (File Name - Base.txt) from Demo1 Database and serverinstance DynamicsNAV100Dev ,using below filters
Pages - 300

3) Create a folder inside Surajit folder called Delta .
4) Open PowerShell ISE as Administrator.
5) Import Module : Import-Module 'C:\Program Files (x86)\Microsoft Dynamics NAV\100\RoleTailored Client\NavModelTools.ps1'
6) Compare object :
Compare-NAVApplicationObject -DeltaPath C:\Users\souvik\Desktop\Surajit\Delta -ModifiedPath C:\Users\souvik\Desktop\Surajit\Custom.txt -OriginalPath C:\Users\souvik\Desktop\Surajit\Base.txt

Delta files created successfully in delta folder.

7) Create Manifest file :

New-NAVAppManifestFile -Manifest (New-NAVAppManifest -Name NAVAppMainfest -Description "APPSeCONNECT Extension" -Publisher "Insync Tech-Fin Solution Ltd." -Prerequisites Page=300 -Version 2.0.0.1) -Path C:\Users\souvik\Desktop\Surajit\NAVAppMainfest.xml
Manifest file created successfully

8) Create Package :
New-NAVAppPackage -Manifest (Get-NAVAppManifest -Path C:\Users\souvik\Desktop\Surajit\NAVAppMainfest.xml) -Path C:\Users\souvik\Desktop\Surajit\APPSeCONNECT.navx -SourcePath C:\Users\souvik\Desktop\Surajit\Delta\
Package created successfully
9) Publish :
Publish-NAVApp -Path C:\Users\souvik\Desktop\Surajit\APPSeCONNECT.navx -ServerInstance DynamicsNAV100Dev -SkipVerification

10) Install : Install-NAVApp -ServerInstance DynamicsNAV100Dev -Name ”APPSeCONNECT”

Now i want know can i use above package file for dynamics 365 Business Central.if

yes : how to install that extension as previously i had a NAV server where i executed above commands. In dynamics 365 Business Central i have no option to run above commands.

No : How to create package from my file ?

How to publish package ?

How to install package ?

Please give suggestion or provide any link of step by step procedure as i am not familiar with Dynamics 365 development environment .

Thanks and Regards

Surajit Kundu

I have the same question (0)
  • surajitkundu Profile Picture
    989 on at
    RE: How to create package and import/install my extension(*.fob file) in Dynamics 365 Business Central Cloud ?

    Hi Steven ,

       As per user reference i am trying to execute below command but getting some error . I can't understand  what is wrong in my command for that error is showing in command.Please help me  .

     1st Scenario: 

         1)  Run     cd "C:\Program Files (x86)\Microsoft Dynamics 365 Business Central\130\RoleTailored Client"   

         2) Run    finsql.exe' Command=exporttonewsyntax, File='C:\Users\servicemanager\Desktop\Surajit\BasePages\exportedBaselineObjects.txt', Database='BC-DOCS', ServerName=.ITSL-SQLSRV1\ITSL_NAVSRV1 ,Filter='Type=page;ID=21|30'

           Error from Command  :  

                           The string is missing the terminator: '. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId :                                                 TerminatorExpectedAtEndOfString

    2nd scenario:

         Run :  

           "C:\Program Files (x86)\Microsoft Dynamics 365 Business Central\130\RoleTailored Client\finsql.exe"  Command=ExportToNewSyntax,                       File="C:\Users\servicemanager\Desktop\Surajit\BasePages\exportedBaselinePageObjects.txt", Database='BC130', ServerName='TEST-BC\NAVDEMO' ,Filter=Type='page';ID='21|30'

    Error from Command  :  

    At line:1 char:102

    + ... 30\RoleTailored Client\finsql.exe"  Command=ExportToNewSyntax, File=" ...

    +                                         ~~~~~~~~~~~~~~~~~~~~~~~~~

    Unexpected token 'Command=ExportToNewSyntax' in expression or statement.

    At line:1 char:127

    + ... 0\RoleTailored Client\finsql.exe"  Command=ExportToNewSyntax, File="C ...

    +                                                                 ~

    Missing argument in parameter list.

       + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException

       + FullyQualifiedErrorId : UnexpectedToken

    Thanks

    Surajit

  • Suggested answer
    Steven Renders Profile Picture
    5,658 Moderator on at
    RE: How to create package and import/install my extension(*.fob file) in Dynamics 365 Business Central Cloud ?

    Here are some examples:

    [View:https://community.dynamics.com/nav/b/dynamicsnavcloudfronts/posts/converting-nav-c-al-objects-into-al-using-txt2al-converter-tool:750:50]

    [View:https://community.dynamics.com/nav/b/simplanovablog/posts/txt2al-tool-how-to-convert-c-side-solution-to-al:750:50]

  • surajitkundu Profile Picture
    989 on at
    RE: How to create package and import/install my extension(*.fob file) in Dynamics 365 Business Central Cloud ?

    HI Steven ,

       thanks for your reply . AS per your suggestion  I am trying to convert my V1 extension to V2 with the hep of below link :

    docs.microsoft.com/.../devenv-txt2al-tool

     I am facing some issue

                    1st step is done

                    2nd step i am trying to execute below command and  showing error ''

                                   'C:\Program Files (x86)\Microsoft Dynamics 365 Business Central\130\RoleTailored Client\finsql.exe' Command=exporttonewsyntax, File='C:\Users\servicemanager\Desktop\Surajit\BasePages\exportedBaselineObjects.txt', Database='BC-DOCS', ServerName=.ITSL-SQLSRV1\ITSL_NAVSRV1 ,Filter='Type=page;ID=21|30'

    Error Details In command :  

                   At line:1 char:101

                      + ... nt\finsql.exe' Command=exporttonewsyntax, File='C:\Users\servicemanager\Desktop\ ...

                       +                    ~~~~~~~~~~~~~~~~~~~~~~~~~

                     Unexpected token 'Command=exporttonewsyntax' in expression or statement.

                    At line:1 char:126

                    + ... porttonewsyntax, File='C:\Users\servicemanager\Desktop\Surajit\BasePages\exporte ...

                    +                    ~

                     Missing argument in parameter list.

       + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException

       + FullyQualifiedErrorId : UnexpectedToken

                  What will be command for Export multiple objects(table/page/xmlport/codeunit)? All the baseline objects  means in which base objects is modified by our extension?.

                   If i want to use 1step to 4step (V1 > V2 conversion) from Dynamics 365 Business Central On-premise development environment then is it work to generate delta file ?

            Our extension is added new table objects (33064461,33064462,33064487) and new page objects( 33064461,33064462,33064463,33064464,33064465) and new CodeUnit(33064461>33064469)  and new  XMLPort (33064461 to 33064482) .I have modified in base pages (21,30,300,42,5050,5056) to link our custom pages just for showing our extension data in base page.

                   Step 8 :              

    @param1   source='C:\Users\servicemanager\Desktop\Surajit\DeltaFile.delta'

    @param2   target='C:\Users\servicemanager\Desktop\Surajit\'

    @param3   rename= i don't know what

    @param4   type=Codeunit, Table, Page, XmlPort

    @param5   extensionStartId=in my extension i have different type of id what will be the extensionStartId for me

     @param6  help= ?

     @param7  injectDotNetAddIns = i have not used any dotnet .

     @param8  dotNetTypePrefix =  i have not used any dotnet.

     @param9  dotNetTypePrefix =  i have not used any dotnet.

     @param10 translationFormat= i don't have any idea what should be format for me.

     @param11  addLegacyTranslationInfo = suggest what should be value for me

                  Run the tool from the command line using the following syntax :    txt2al --source --target --rename --type --extensionStartId --injectDotNetAddIns --dotNetAddInsPackage --dotNetTypePrefix --translationFormat --addLegacyTranslationInfo

                    Please suggest what will be command with param value so that i can run the txt2al.exe tool .

    Thanks

    Surajit Kundu

  • Suggested answer
    Suresh Kulla Profile Picture
    50,054 Super User 2025 Season 2 on at
    RE: How to create package and import/install my extension(*.fob file) in Dynamics 365 Business Central Cloud ?

    You need to develop your code using AL and then package and Publish .app into the cloud.

    Please refer to the link, for AL

    docs.microsoft.com/.../devenv-dev-overview

    docs.microsoft.com/.../devenv-how-publish-and-install-an-extension-v2

  • Suggested answer
    Steven Renders Profile Picture
    5,658 Moderator on at
    RE: How to create package and import/install my extension(*.fob file) in Dynamics 365 Business Central Cloud ?

    The process you describe is what is called: V1 extensions and these are no longer supported. You will need to convert or re-develop your customizations as an extension, an .app file, and then upload it to your tenant.

    More information is available here:

    docs.microsoft.com/.../devenv-upgrade-v1-to-v2-overview

    docs.microsoft.com/.../devenv-how-publish-and-install-an-extension-v2

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans