‎03-12-2018 08:15 PM
Is there a way to export a MegaCollection of object into an export file progrmatically like what is done with the MegaCompareTool?
I would ust this but we don't need to compare just create export files based on a collection of objects.
Solved! Go to Solution.
‎03-12-2018 08:25 PM
After poking around here is what I was able to come up with.
public ETLManager(MegaCollection initiatives) { MegaExportTool tool = new MegaExportTool(initiatives.getRoot()); String filename = new SimpleDateFormat("'initiative-'yyyyMMddHHmmss'.mgl'").format(new Date()); String folder = AppConfig.getConfig("InitiativeExportsDirectory"); String location = String.format("%s\\%s", folder, filename); tool.perimeter(ECOMAP_DATA_TRANSFER); tool.propagate(true); tool.transferedObject(false); tool.Export(initiatives, location); //ExportManager.createExport(initiatives, filename, folder, "Development", ECOMAP_DATA_TRANSFER); }