Skip to main content
December 8, 2021
Solved

WebAPI response in CSV format

  • December 8, 2021
  • 4 replies
  • 0 views

Hello, 

Is there a way for a response from a webAPI to be returned in "application/csv"? I know it can return XML and JSON. But in this specific need, I need it in CSV format.

Thank you.

Best answer by stefanhelzle0001

Sure, but you have to create the text yourself. Use char(10) as a line separator.

4 replies

stefanhelzle0001
Brainy
December 8, 2021

Sure, but you have to create the text yourself. Use char(10) as a line separator.

alexl0007Author
December 13, 2021

Do you mean I have to add the logic in the body ? a!httpResponse { body: [logic here?] }

stefanhelzle0001
Brainy
December 13, 2021

Yes. Something like 

"firstname","lastname","age"char(10)
"john","doe","42"char(10)
.
.
.
.