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
eddieeddie 

Can you use external ID fields as a foreign keys for operations othen then upsert?

The way the doc reads I assume you can't but wanted to make sure.

 

It would be nice to be able to do so, for the cases where you don't need the upsert functionality (or the external Id baggage) for the child operation but do want to related it a parent based on an external id

 

Thanks,

 

Eddie

SuperfellSuperfell
You can't, but you can call upsert and use Id (the salesforce Id) as the externalId field, that pretty much mirrors the update/create calls at that point.
dapkusdapkus
I've added this as an idea on Idea Exchange -- you can voice your support for it here.