+ Start a Discussion
tarun jain 110tarun jain 110 

Can we check Duplicate Rule is defined on custom object

Hi,
I want to check is there any duplicate rule associate with particular object or not in apex class

Please provide the code if we check any exist duplicate rule with custom object
Rowallim TechnologyRowallim Technology
Hi Tarun
 You should go through the following link. Here you will get an example of your questions.
(https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_Database_DuplicateError.htm)
Hope this will help you
Thanks