I have activated the standard Duplicate Management Rule on Contact to prevent duplicate records.
When I try to create duplicate Contact records form SalsesForce side, it shows me a warning message and allows me to ignores the alert and create a duplicate record.
But when I try to create a duplicate record in Apex, it gives me an exception.
How can I surpass/ignore such alerts and create duplicate records in Apex?
Kindly help me out.