Load Binary Attachments

The Bulk API can load binary attachments, which can be Attachment objects or Salesforce CRM Content.

  • Create a request.txt File

    A batch is represented by a zip file, which contains a CSV, XML, or JSON file called request.txt that contains references to the binary attachments and the binary attachments themselves. This differs from CSV, XML, or JSON batch files that don’t include binary attachments. These batch files don’t need a zip or a request.txt file.

  • Create a Zip Batch File with Binary Attachments

    To submit your binary attachments as a batch, you create a zip batch file .

  • Create a Job for Batches with Binary Attachments

    You can use cURL to create a job for batches containing Attachment records.

  • Create a Batch with Binary Attachments

    After creating the job, you’re ready to create a batch of Attachment records. You send data in batches in separate HTTP POST requests. In this example, you create and submit one batch.