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

How to enable checkbox for Duplicate records.

Hi Everyone,

I have created a custom data loader using visualforce page. How to check the duplicate records only for in between the csv file records, i don't want to compare the new records to sfdc database for duplicates.
Ex: Suppose i'm uploading the csv file with 100 records, i want to check duplicates for "Account Name", "MVL_Name__c", Billing address fields in between 100 records only, If i found any duplicate records i need to enable a checkbox field.

Can anyone help on this scenario.
Thanks in advance.
venkat-Dvenkat-D
You can do something like..
once you have those records in list, loop through list and keep on adding your unique value to set. From second record onwards do a check if set already contains unique id and if its there then enable checkbox.