
Questions: 23,767 //
Answers: 52,373 //
Contributing Members: 18,028
convert Pipe delimited text file into CSV in Mule 4
Feb 12 at 07:16 PM, ariell answered with:
Hi @rpedada
You can do so by adding the this configurations to your file Read connector:
Processing your payload with the following dataweave:
%dw 2.0
output application/csv separator=','
---
payload
And using a file write adapter to output it.
You can find more info here: https://docs.mulesoft.com/mule-runtime/4.1/dataweave-formats#format_csv
Regards, Ariel
DW 2.0 2 Answers
Scripting language error on expression '%dw 2.0 4 Answers
Extract XML value into variable 5 Answers
How do I read JSON which has keys with space in Mule 4? 1 Answer