I created some classes in Java, which integrate my existing system with SalesForce via Bulk API. The component runs smoothly when inserting new objects. I was wondering how it would be possible to upsert -OR- update new objects based on multiple keys (essentially a composite key), for instance: Id and DateCreated. Is it possible?


1 Answer 1


Upserts require the use of an external id field on the object. You could probably concatenate your composite key, assign that value to the external id in the Salesforce record, and then use that for upserting.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .