function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ankita Kumari 68Ankita Kumari 68 

Duplicate rule through API call

I have created one duplicate rule on account object with matching rule on Account Name, Mobile, Email fields all as exact matched and blocking user to create new record if duplicate rule returns exactly matched record to users.
I would like to know if is there any way to redirect user to exactly matched record detail page returned by duplicate rule without showing alert message via API.

Thanks In Advance!

 
Raj VakatiRaj Vakati
I dnt think so .... API you cannt able to 


You can try this one .. 

Override the New Button and handler the errors in the exception .. from there you can redirect .. 

 https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_Datacloud_DuplicateResult.htm