Newer Version Available
Prepare XML and JSON Files
The Bulk API processes records in XML, JSON, or CSV files. An XML or JSON file can
contain multiple records and constitutes a batch. A record in an XML file is defined in an
sObjects tag.
All records in an XML or JSON file must be for the same object. You specify the object in the job associated with the batch. All batches associated with a job must contain records for the same object.
When processing XML or JSON files with the Bulk API:
- You must include all required fields when you create a record. You can optionally include any other field for the object.
- If you’re updating a record, fields not defined in the file are ignored during the update.
- Files must be in UTF-8 format.