• Muna Jamous 8
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
I am trying to update the same id in a list mutliple times, is there a way to do that 
List<contact> ConList = new List<contact>();

contact pe = new contact();
pe.id =  '0032900000QsV17';
pe.phone__c= false;
ConList .add(pe);

contact pe2 = new contact ();
pe2.id =  '0032900000QsV17';
pe2.phone__c= true;
ConList .add(pe2);


Database.SaveResult[] srList = Database.update(ConList ,false);
System.debug('srList===' + srList);