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
vinayak bule 16vinayak bule 16 

I want to combine two records of same Object having same ids how can i achieve

The first 2 have same id and 2nd having same id. I want to combined records based on IDs

Target__c:{ActualJun__c=1006019.98, Id=a0C7E00000D2UdeUAF}
 Target__c:{Actualoct__c=1331.01, Id=a0C7E00000D2UdeUAF}

Target__c:{ActualJun__c=1006019.98, Id=a0C7E00000D2V4GUAV}
 Target__c:{Actualoct__c=1331.01, Id=a0C7E00000D2V4GUAV}
Syed Insha Jawaid 2Syed Insha Jawaid 2
Hi Vinayak
Ideally, every record, regardless of entity type, has a globally unique identification value in its ID field which is generated at the time of record creation. That Record ID value will never change, even if the record is deleted and then undeleted. In which scenario you are having same record Ids for two records?
vinayak bule 16vinayak bule 16
ya I know. in opportunity I am getting records based on month and I am storing it in a object based on closed date as a record. to have uniqueness I have added id