From 34f3155a482c403d08a93ca291391c68d9504163 Mon Sep 17 00:00:00 2001 From: Matthew Poer Date: Mon, 17 Jan 2022 15:38:12 -0500 Subject: [PATCH] Adds warning about Bulk API and mixed keys Fixes #754 --- src/partials/document/bulk.html.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/partials/document/bulk.html.md b/src/partials/document/bulk.html.md index 3d20a4f..5d44f67 100644 --- a/src/partials/document/bulk.html.md +++ b/src/partials/document/bulk.html.md @@ -29,6 +29,8 @@ so not practical for large set of records. We can use bulk API interface to load Similar to Salesforce Bulk API, first create bulk job by `Bulk#createJob(sobjectType, operation)` through `bulk` API object in connection object. +**Warning** that when using the Bulk API, **all objects must have alike keys**. _Additional keys added to objects after the first are discarded_, so it may be best to review and normalize your objects' keys. + Next, create a new batch in the job, by calling `Bulk-Job#createBatch()` through the job object created previously. ```javascript