1

I read that records are in the same order as they are sent, but what happens if I upsert 5 records and only 3 are fine? For example:

  1. Fine
  2. Fails
  3. Fine
  4. Fine
  5. Fails

Am I going to receive 5 records or 3? If 3, I need to perform another query, sigh.

2

The documentation has a good description of how to handle failures.

You get back all records and any error messages:

"Id","Success","Created","Error"
"003D000000Q89kQIAR","true","true",""
"003D000000Q89kRIAR","true","true",""
"","false","false","REQUIRED_FIELD_MISSING:Required fields are missing: [LastName]:LastName --"
| improve this answer | |
  • Thanks a lot, I thought only successful records will be returned with with a "multiple records" request (a bulk upsert with more than one record) – Francesco Belladonna Dec 8 '14 at 17:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.