• Akansha Yadav 3
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
List<Account> accs = [SELECT Id, Is_Paid__c FROM Account WHERE PersonContactId=:conIds];
    if(accs!=null && !accs.IsEmpty())             
    {
       for(Account acc : accs)
       {
             acc.Is_Paid__c = true;     
        }
        if (accs!=null && !accs.IsEmpty())  
            {
                 update accs;
             } 
      }
 
List<Account> accs = [SELECT Id, Is_Paid__c FROM Account WHERE PersonContactId=:conIds];
    if(accs!=null && !accs.IsEmpty())             
    {
       for(Account acc : accs)
       {
             acc.Is_Paid__c = true;     
        }
        if (accs!=null && !accs.IsEmpty())  
            {
                 update accs;
             } 
      }