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)

Comprehensive guide to using GIT/source control for NAV 2016+ development

(0) ShareShare
ReportReport
Posted on by

I am already familiar with GIT and source control... but I am looking to understand how to use it for Navision development. Just simple version/change tracking would be enough for me at the moment... so I would like to understand how I can export objects automatically to save them in a local git repo.  (I'll worry about merging later).

Is there a good guide that shows every step of how to achieve this?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    You have GIT native support only with VSCODE and AL. For C/AL you can automate a process where you export all the NAV Objects as TXT with Export-NavApplicationObject Powershell cmdlet and then save them on a GIT repo for source control.

    [View:https://docs.microsoft.com/en-us/powershell/module/microsoft.dynamics.nav.ide/export-navapplicationobject]

  • Community Member Profile Picture
    on at

    Right - the "automate a process..." is what I am interested in. Is there a certain strategy to go by? For instance.. I see you can export with filters to say "codeunits 1-10" - do people do this and save groups of CUs into a single txt file?  I am wondering what the best practice is.  Should I do that or should I always save individual CUs into separate txt files?  Does it matter?

    I could see separate files as the way to go - just so that if I am reviewing a file's change history I know there aren't other things contained in the file I am looking at. Seems cleaner that way.

  • Hannes Holst Profile Picture
    5,767 on at

    Yes - definitly seperate files. Otherwise you would store always one big file even when you only change a caption.

    Not sure about GIT, I did once work with a self-build version control which triggered the VC-application per command line or it did support a directory scan (so that you don't have to import manually).

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Yes, individual files absolutely. So you can track changes for every objects.

  • Jesper Kenborg Profile Picture
    10 on at

    If you want to have a source control for NAV/BC that is let complex than GIT, then I can recommend you look at the source control solution from NAVToolbox. You can get up running in 5 minutes and there is not required any additional NAV/BC license or objects. Check it out on www.NAVToolbox.com

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