I've got a ASP.NET WebAPI project that must integrate with a Salesforce instance, using the OData 4.0 adapter for Salesforce. Searching and viewing my external objects is working fine, but I am unable to create instances.
I've turned on logs, and Salesforce is doing a
POST to our create endpoint with a correct model, and our side is handling it fine and then returning a
201-Created response containing
$odata.… metadata. However, Salesforce shows the error:
External Object Error. The external object record for external data source “/x00” can’t be created. Verify the primary key values.
What exactly is Salesforce expecting in the response from the
POST request? And is there a way to get Salesforce to redirect to the parent entity, rather than showing details of the created entity on creation?
Apologies if this is in the documentation, but I've not been able to find it.