• tech update 2
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Magnificent solution to recover lost excel worksheet password & high / super way to unlock locked MS Office excel worksheet is Excel Password Recovery Software. It has two obliging methods Dictionary attack & Brute Force attack that accurately scan all kind of excel worksheet and also provides you best authority to set password character such as :- A-Z a-z 1-0 of excel worksheet  as well as set any type of password like alphabetic & numerical password of excel worksheet. It supported MS excel file versions 97, to 2016

 Read More:-   goo.gl/e1UlzM


 
How can I update the fields below on the Account object? I am not familiar with writing a Batch Trigger. Please see code below.

Number_of_Contacts__c​
Number_of_Active_Contacts__c

 
trigger NumberOfContacts on Account (before insert, before update) {
    if(trigger.isinsert)
        for(account a:trigger.new)
            a.Number_of_contacts__c = 0;
    else
        for(account a:[select id,(select id from contacts) from account where id in :trigger.new])
            trigger.newmap.get(a.id).Number_of_contacts__c = a.contacts.size();
            
        for(account b:[select id,(select id from contacts where Inactive__c = False) from account where id in :trigger.new])
            trigger.newmap.get(b.id).Number_of_active_contacts__c = b.contacts.size();
}

Thanks in advnce!