General downloads

Export selection of objects as separate textfiles

Author
Remco Reinking  
Category
General downloads
Date
03/03/2015
Size
1,82 KB
Downloads
1024
MD5 digest
8E8DE21518BC824183CA870586B3F086
Rating
32121
Popularity
Downloaded 4 times in the last two weeks
While doing an upgrade from NAV2009R2 to NAV2015 I found that the powershell cmdlet Split-NAVApplicationObjectFile was very slow. (took more than 12 hours to run)
Maybe because of the setup of the virtual machine I was working on, but that's why I decided to make this small Powershell script that will export all selected objects as separated txt files, using the same naming convention as the Split-NAVApplicationObjectFile function.

It first queries the object table with a given filter and it uses the result set to show to the user.
The user then selects the objects he wants to export. All selected objects will be exported using a call to finsql.exe -exportobjects for each found record.

So it is actually quite simple.
Download this file