Integration Cloud 6.1.0 | Built-In Services | Built-In Services | documentToDelimitedDataBytes
 
documentToDelimitedDataBytes
Converts a document to delimited data bytes (byte array object).
This service will convert the following document:
To bytes (byte array object) containing the following delimited data: (useHeaderRowForFieldNames=true)
"Date","Pupil","Grade"
"25 May","Bloggs, Fred","C"
"25 May","Doe, Jane","B"
"15 July","Bloggs, Fred","A"
Note:
Here the fieldQualifier = Comma(,) and textQualifier= double quote(")
To the byte (byte array object) containing the following delimited data: (useHeaderRowForFieldNames=false)
"column1","column2","column3"
"Date","Pupil","Grade"
"25 May","Bloggs, Fred","C"
"25 May","Doe, Jane","B"
"15 July","Bloggs, Fred","A"
Here the fieldQualifier = Comma(,) and textQualifier= double quote(")
Input Parameters
document
Document. Document to be converted to delimited data bytes (byte array object). This document contains a document array rows[] corresponding to the delimited data.
fieldQualifier
String Optional. The delimiter to use for separating entries in delimitedDataBytes. Default is comma (,).
textQualifier
String Optional. The character to use for quoted elements. Default is double quote (").
useField NamesFor HeaderRow
String Optional. The first line in the output delimited data delimitedDataBytes will be constructed using the property names in the input document array document\rows[]. Set to:
*true. Property names in the input document array document\rows[] will be used as the first row in the output delimitedDataBytes.
*false. column1, column2...columnN will be used as the first row in the output delimitedDataBytes.
encoding
String Optional. The encoding to use while parsing the delimited data.
Output Parameters
delimited DataBytes
Object. Delimited data byte array object resulting from the conversion of a document.