Skip to main content

Notifications

Announcements

No record found.

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

  • tpokorra Profile Picture
    tpokorra 25 on at
    RE: Export-NAVApplicationObject does not have a NavServerInstance parameter but Import-NAVApplicationObject has

    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.

  • Verified answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,749 on at
    RE: Export-NAVApplicationObject does not have a NavServerInstance parameter but Import-NAVApplicationObject has

    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

  • Olister Rumao Profile Picture
    Olister Rumao 3,957 on at
    RE: Export-NAVApplicationObject does not have a NavServerInstance parameter but Import-NAVApplicationObject has

    Hi Timotheus,

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

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans