How To: Automatic merge in NAV (Part II of II)

Powershell
FacebookTwitterGoogle+LinkedInWhatsAppEvernoteShare

Hello again!

After having had time to play with the new merge cmdlets and having understood the way they work I must say I am quite happy with them.

The issue I’ve had with the new tools is the “feel” when using them. They are not “user-friendly” and I know that it is meant for developers and devs should be used to the powershell environment. Regardless of that I have built a completely free NAV module you can download here that gives that NAV feel we are all used to :) Let me know if you like it.

My opinion is that using these tools is really fast for the tasks they do, and they do them surprisingly well (I’ll confess, I was quite sceptical at first).

Let me briefly describe what the new merge cmdlets do:

 

Name Usage
Merge-NAVApplicationObject This function is the main source of magic :) It combines 3 files to produce a 4th with the result.
Compare-NAVApplicationObject This function will create a files with a .DELTA extension that will contain the differences between the files. So, it’s like the merging part but without the actual merge
Update-NAVApplicationObject This function is the “second part” of the merging process. It takes the .DELTA files and applies them to the text files.
Split-NAVApplicationObjectFile This function splits a file containing multiple objects in one per object (Objects.txt is converted to COD1.txt, TAB18.txt, etc).
Join-NAVApplicationObjectFile This function takes care of joining the different files (one per object) into one single file we can import.
Get-NAVApplicationObjectProperty With this function we can retrieve the information of the poperties of the objects (time, date, modified, …).
Set-NAVApplicationObjectProperty With this function we can really change the properties of the objects.

 

This being said, I’d like to encourage you to try them :) The only issue I have seen so far is a problem with the version list. Besides that it’s good!

Leave a Comment.