In this article, we will learn how to save duplicate records using Apex if a duplicate rule is already configured in Salesforce. I am assuming that you already have a duplicate rule configured in Salesforce. In this article, we will be using the exam...

Markdown supported · ⌘↵ to post
Great article, the code which you presented is for anonymous window, can you show an example where I can implement this?
I am creating a record in SF using API, and SF is blocking the record due to a dupe rule. The dupe rule has already the condition, to NOT block if source is the API, this works internally (when I create from SF)
But when I push from API --> it blocks.
I want to bypass this, can you show me how to write a code for this?
shubham lashkan
Passionate Developer from 🇮🇳 who loves to teach.
Correct me if I am wrong.
You are fetching records from another source via salesforce HTTP GET Requests.
And you want to store the fetched record in Salesforce and also want to make sure the record is stored even if a record already exists?