Sforce Call Options Header
Warnings Header
Content Type Header
Line Ending Header
Limits
Bulk API 2.0 Older Documentation
Bulk API 2.0 End-of-Life Policy
Previous PDF Versions
Use the Sforce-Line-Ending header to specify how line endings are formatted.
When you create a Bulk API 2.0 job, specify a line ending that matches the line ending used to create the CSV file using the lineEnding request field. Bulk API 2.0 supports two line-ending formats:
LF linefeedCRLF carriage-return plus linefeedThe default line ending, if not specified, is LF. Different operating systems use different characters to mark the end of a line.
Unix / Linux / OS X uses LF (line feed, ‘\n’, 0x0A).
Windows / DOS uses CRLF (carriage return followed by line feed, ‘\r\n’, 0x0D0A).
For example,
1{
2 "object" : "Account",
3 "contentType" : "CSV",
4 "operation" : "insert",
5 "lineEnding" : "LF"
6}Note that it’s possible that the text editor used to create the CSV file is configured for a specific line-ending format and might supersede the default operating system format.