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
sreeesreee 

i dont want insert duplicate records in table ,how can achieve with apex code

i dont want insert duplicate records in table ,how can achieve with apex code...thanks in advance

Abhi_TripathiAbhi_Tripathi

You can do it using maps,

 

Maps have key and values, where keys are "unique" and correspondingly have values, and how to populate map? you can wish to see this post

 

http://abhithetechknight.blogspot.in/2013/10/logic-for-maps-having-list-at-values.html