How can we disable duplicate check while creating record from Apex?
In case if you are looking to disable standard duplicate rule while creating record from apex – especially in case of integration and backend processes – we can use DMLOptions.DuplicateRuleHeader as below.