function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
moverdorfmoverdorf 

BULK API - Custom Relationships..

GOAL:
In a CSV I want to define a custom relationship between two custom objects (A and B), and on Upsert of B, I want to store the
value of a NON External Id field.

Example:
I have two custom objects that are related with CustomObjAB__r

CustomObjA
     1. CA_External_Id__c (External ID)
     2. CA_Another_Id__c (The value I want to save on Upsert of CustomObjB) - Text field

CustomObjB
     1. CB_Id__c (External Id)
     2. CB_Another_Id__c (I want to populate this value with CA_Another_Id__c not the External Id value)

So I know you need to use an External Id field to relate the two objects in a CSV column header, but what if I don't want to save the External Id field, but ANOTHER field from CustomObjA.

From what I have read it looks like the ONLY values you can save from a custom relationship is the External Id value? Is that correct?

I would have hoped, you could define the External Id as a lookup and then get any field you want to store from the row found.

Thanks to all.