If you've been running this app for a while, and you recently upgraded, or your new to version 3.46 or greater, you have manually calculate "Webinar Attendance" the first time. After that, the attendance will update with each new Registration and each new Attendance to a Webinar. 


Here are the steps to follow, to get your initial attendance values


The first step is a one time manual event. Attendance will be tracked in real time going forward:


  • Webinar Attendance - Add this field to your page layout it is already set to Read Only **
  • Last Webinar Registered Date - Add this field to your page layout set to Read Only **
  • Last Webinar Attended Date - Add this field to your page layout set to Read Only **
  • Go to your Developer Console 
  • Click on  Debug > Open Execute Anonymous Window > then paste the following line to update Webinar Attendance on Leads:  

        

        Id bactchJob = Database.executeBatch(new GetWebinarInfoForLeadBatch(),200); 


  • Click on the "Execute" button
  • Once this is done, remove the previous line you pasted then past this line to get your Webinar Attendance on Contacts: 

Id bactchJob = Database.executeBatch(new GetWebinarInfoForContactBatch(),200);

  • Click on the "Execute" button
  • DONE
  • Go to any Lead or Cotnact who was Registered for at least one Webinar