Newer Version Available

This content describes an older version of this product. View Latest

Preparing XML Files

The Bulk API processes records in XML or CSV files. A record in an XML file is defined in an sObjects tag. An XML file can contain multiple records and constitutes a batch.

All the records in an XML 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.

Note the following when processing XML 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, any fields that aren't defined in the XML file are ignored during the update.
  • Files must be in UTF-8 format.