Skip to main content

Hi everyone!

 

I have a question regarding Duplicated Record Sets/Items through Apex.

 

What I need to do: I need to find duplicates on Lead object, but is not possible to do it through "field crossing" (there's an idea - https://trailblazer.salesforce.com/ideaView?id=08730000000cHBJAA2);

 

So I did through Apex, on After Insert/Update Trigger, I'm checking if there are any duplicated records(through IF conditions) and create Duplicated Record Items and Duplicated Record Set as necessary.

 

The issue is: It only works when I'm inserting records when existing records are already in Salesforce, it shows on the Potential Duplicates Lightning Component(https://help.salesforce.com/articleView?id=000354508). When I insert in bulk(even if it's two records only), it doesn't work, even if a Duplicated Record Set is created with both Duplicated Record Items created as well.

 

How does the Potential Duplicates Lightning Component work exactly?

Is there anything else beside the Duplicate Record Set/Items to make it show the "You have duplicates" message?

 

Anyone have other solution? I also tried to do this through Flows and the result is the same.

 

Thank you!

3 条评论
  1. 2021年4月16日 08:08
    Thanks a lot for sharing, I understand your point. Also I read the article and it makes sense. You may contact @Artyom Bazyk which I believe is developing some new solution to solve this duplicates issue. Good luck!
0/9000