Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. public class AVX_LeadHandler_cls {
  2. public void afterupdate( Map<Id,Lead> oldMapRecords, List<Lead> lstNewRecords ){
  3.  
  4. List<Lead> lstleadConverted =new List<Lead>();
  5. for(Lead l : lstNewRecords)
  6. {
  7. if (l.Status =='Qualified'){
  8.  
  9. lstleadConverted.add(l);
  10. }
  11. }
  12.  
  13. if(lstleadConverted.size() > 0)
  14. {
  15. AVX_LeadHelper_cls.LeadConvert(lstleadConverted);
  16. }
  17.  
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement