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
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