Report to Export groups, models and objects in XML
I want to make a report that gives the same result as the ARIS functionality of exporting a model or group as an xml file, and allows to import that xml file in another database.
I am trying to make this report but I can't get the file to appear on my computer. This is the code I am using to make the xml export:
var selectedG = ArisData.getSelectedGroups(); var xmlExport = Context.getComponent("XMLExport"); var options = xmlExport.createDefaultXMLExportOptions(selectedG, [g_nloc] ); options.setZipExport(false); // No compression options.setHierarchyDepth(0); // Assignment level options.setRelationDepth(0); // Connection level options.setIsSimpleExport(false); // Minimum export off options.setExportUsersAndUsergroups(false); // Users and Usergroups off options.setExportCompleteGroupPaths(true); // Complete paths off var result = xmlExport.startExport(options);
var myResult = result.getFileResult();
no file is opened when i run the script, i created the script so it would have output xml and I cant seem to find the problem here