Currently when trying to create an Account via the Rest API I get this message:

[{"message":"Use one of these records?","errorCode":"DUPLICATES_DETECTED","fields":[]}]

Is there a way I can send DUPLICATE_DETECTION_MATCH_INVOCATION_DETAILS via the rest API when a Duplicate is detected? It would be great to know the SalesForce IDs of the detected Duplicates.

Does this require a custom trigger?


Looks like the REST API version missed this important header at this point. There is an idea that you can upvote here

So alternatives are

  • Build your own apex class that does DML, this answer has some important details on how you can achieve this.
  • Use SOAP API, sounds backward in 2020 to do this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.