Skip to main content
Version: v0.18.0

ToCSV

Alias:ToCSV, ConvertEntityToCSV

Output:StringStream

Write entities to a stream in CSV format. The same as ToConcordance but with different default values.

ParameterTypeRequiredPositionDefault ValueExampleSummary
Entitiesarray<entity>✔1The entities to write.
EncodingEncodingEnum2UTF8 no BOMHow the stream should be encoded.
Delimiterstring3,The delimiter to use to separate fields.
QuoteCharacterstring4"The quote character to use. Should be a single character or an empty string. If it is empty then strings cannot be quoted.
AlwaysQuotebool5falseWhether to always quote all fields and headers.
MultiValueDelimiterstring6The multi value delimiter character to use. Should be a single character or an empty string. If it is empty then fields cannot have multiple fields.
DateTimeFormatstring7O - ISO 8601 compliant - e.g. 2009-06-15T13:45:30.0000000-07:00yyyy/MM/dd HH:mm:ssThe format to use for DateTime fields.