I want to upsert objects through the .NET-ForceClient into our Salesforce, more specifically, I want to insert or update an object that contains a reference to another object.
As a simple example, let's take a look at an Account-object, which has a Reference to a RecordType-object through its RecordTypeId.
What is the best practice to upsert such an object, preferably without
- querying all the RecordTypes first,
- then extract the RecordTypeId for a given RecordType
- and finally calling an upsert with the manually extracted RecordTypeId?
Is there any way to call an insert/update/upsert across multiple objects like one would do in a traditional relational database? How can this be achieved?