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?

1 Answer 1


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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .