Once again I am seeking for help on these forums, but this time it's more about a specific function than a zimlet altogether.
I want to export a user's data from the console, and, as each and every time I am looking for how stuff is working, I do a little search in the javascript API, take a look at the doc online, and go through the existing zimlets on github. But once again, I couldn't find any clues anywhere.
Reading the API on the ZmImportExportController, I quickly found the method I was looking for: exportData(params). I am now facing the following, pretty straight-forward, 2 lines of code:
Code: Select all
var params = {type: ZmImportExportController.TYPE_CSV, filename: "export.csv"};
appCtxt.getImportExportController().exportData(params);
After going through all the documentation again (including source code) and even making some arguments for params up, I couldn't find a single argument that could specify the destination/export folder.You need to specify an export folder.
Do you guys have any idea of what I am missing here?