FavoriteRajiv Kocherla (Self) asked in Reports & DashboardsSep 15, 8:06 AMApex does not allow me to create duplicate records even though I allowed my duplicate rule to create duplicate, there is a bypass can someone give an example scenario code please ???2 answersSortSort by DateSort by Most HelpfulSort by DateLoad more comments...Rahul Chauhan (Kcloud)Sep 15, 10:14 AM Plain Apex DML still enforces duplicate rule alerts by default, even if the rule action is Allow with alert. You need to explicitly bypass it via DMLOptions DuplicateResult Class | Apex Reference Guide | Salesforce Developers Add a commentWrite an answer...BoldItalicUnderlineStrikethroughBulleted ListNumbered ListAdd linkCode blockInsert imageAttach filesLink URLCancelSave0/9000Reply
Rahul Chauhan (Kcloud)Sep 15, 10:14 AM Plain Apex DML still enforces duplicate rule alerts by default, even if the rule action is Allow with alert. You need to explicitly bypass it via DMLOptions DuplicateResult Class | Apex Reference Guide | Salesforce Developers