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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Export-NAVApplicationObject does not have a NavServerInstance parameter but Import-NAVApplicationObject has

(0) ShareShare
ReportReport
Posted on by 25

I would like to use

Export-NAVApplicationObject MyAppSrc.txt -DatabaseName MyApp | Split-NAVApplicationObject -Destination MyAppSrc

to get all objects from my NavServer, as documented on https://docs.microsoft.com/en-us/powershell/module/microsoft.dynamics.nav.ide/export-navapplicationobject?view=dynamicsnav-ps-2018

But unlike Import-NAVApplicationObject (https://docs.microsoft.com/en-us/powershell/module/microsoft.dynamics.nav.ide/import-navapplicationobject?view=dynamicsnav-ps-2018), there are no parameters for NavServerName, NavServerInstance, NavServerManagementPort.

Is Export only possible on the server itself? I would have liked to use it from the Dynamics Nav 2018 Development Shell on my development machine.

Is there any way to accomplish this?

*This post is locked for comments

I have the same question (0)
  • Olister Rumao Profile Picture
    3,967 on at

    Hi Timotheus,

    Try using the Powershell ISE to get the list parameters to be passed to Export-NAVApplicationObject command.

  • Verified answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Hello, why do you need the NavServername, and Instance, when you exporting or importing the objects, you are doing on that a specific database rather then on NAVInstance. There are parameters for you to specify the databasesever and databasename for that cmdlet.

    docs.microsoft.com/.../export-navapplicationobject

    Check ex:4-6

  • tpokorra Profile Picture
    25 on at

    I found now in Object Designer, File/Database/Information, the proper values for Database Server and Database Name. With those values, the export works:

    Export-NAVApplicationObject -Path MyAppSrc.txt -DatabaseName navdev -DatabaseServer MY-SERVER\DYNAMICSNAV -Filter 'Type=Codeunit;Id=1..10'

    So there seems to be no need for specifying the NavServerInstance etc.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans