How to format database column before export to csv

What I need to achieve:

I want to format my database output for example date format, replace, titlecase etc. before exporting them to csv. I need the output of the csv to be end user readable friendly.

1 Like

I would also like to know how to achieve this?

1 Like

Hi,
Did you found a solution ?

You can use a repeat section, use Set Value steps to assign formatted values and link the CSV export to the repeat rather than the query

1 Like


Where would you do that?

Hey @sylvainbaron,

What Ben said is to add a repeat (with Expression the query) before the Export CSV File step and assign as Export Data the repeat instead of the query

This is an example I have, pulling the products (queryProd) and based on that query values I set a repeat and assign new values in it (you can also add a nested repeat that gives a “subquery”)

Every setValue inside your repeat will be a column in your new array that is produced from the repeat.

2 Likes

Super thanks! Got it

1 Like