How can I specify the order of my columns in a CVS export?

My app has an export data to CSV option. How can I set the order that the columns should be in the export?

Hi Jo,

You can do this by specifying an array of columns in the javascript. See example below:

var options = {
  fileName: "test.csv",
  //Change the columns below. Only the columns listed here will be exported and in this order.
  columns: ["UserEmail", "End time", "Location"],
};
Fliplet.CSV.download(data, options);

Documentation: Fliplet.CSV | Fliplet Developers Documentation

1 Like

Thank you!