jcampion
8 years agoNew Contributor III
Dynamically set order of fields for csv formatter
I am reusing a pipeline for many applications. The pipeline basically takes data, does a small transformation on one field, and then writes a csv file.
Each application has its own set of fields.
The fields must be in a specific order, which I can determine programmatically.
I want to write them out in this order, but the header option on the csv formatter requires hard-coded field values.
Is there a way to specify the order (or even sort the fields alphabetically) dynamically?
Thanks,
Judy