Hi
I successfully did as per the instructions everything works but the only issue is when we use the tableto csv with the where filter and properties I have added selected fields . the csv file gets generated and when downloaded the order in which the fields are coming in the csv is not in the same order of list of fields mentioned in the properties.
I don’t really understand what you are trying to do. Please provide more details on how you are trying to export the file, attach screenshots and steps to reproduce.
In order to set the sequence of the columns you need to provide a columns option in the csvOptions object:
{
"filePath": "demo.csv",
"tableName": "Person",
"csvOptions": {
"header": true,
"columns": ["C", "B", "A", "E", "D"] // The order definition matters. It reflects the order of the generated records.
}
}
Keep in mind that if you use it with the columnsMapping option, you should specify mapped column names instead of original, e.g.: