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
Galeeb SKGaleeb SK 

Assigning Records

i have one scenario like this ,i have 3 objects like A,B,C .i assign the two records of B to A (like mapping), AND also assign those  same two records to C. Inthat case when iam assigning those same two records to C, it display  an Error duplicate records like this. How to achieve this with APEX CODE?Please Tell me?

Regards
Galeeb SK
SRKSRK
Hi Galeeb,

assign the two records of B to A i have understanding that you are assign menas there is lookup of A on B and you are making a existing 2 records of B as a child of A

if you doing it trow code can you please share the code