Document to CSV file

Hi all,

I´m trying to generate a csv file from a document through convertToString, and in the schema I set the Flat File Definition this way:
Record Parser = Delimiter
Record = Character = newline
Fiels or Composite = Character = ;

It just doesn’t work!
How can I do that?
Any help will be appreciated.