Hi All
We wish to byepass a duplicate rule but unable to do that using dml.DuplicateRuleHeader.allowSave = true;
And this is most probably because the action type in duplicate rule is "Block".
Can anybody suggest how to byepass this type of duplicate rule?
Thanks
답변 3개
Hello,
Historically when I wanted to work around this I created a checkbox on the record level that was called "Disable Duplicate Rules".
As part of my record creation I set this to TRUE and then when the record was edited I then set this to FALSE.
In my Duplicate Rule I then explictally excluded any records where this field was TRUE.
Be sure to test this throughly in a sandbox before you move anything to production.
Thanks, Tom