Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class AVX_LeadHandler_cls {
- public void afterupdate( Map<Id,Lead> oldMapRecords, List<Lead> lstNewRecords ){
- List<Lead> lstleadConverted =new List<Lead>();
- for(Lead l : lstNewRecords)
- {
- if (l.Status =='Qualified'){
- lstleadConverted.add(l);
- }
- }
- if(lstleadConverted.size() > 0)
- {
- AVX_LeadHelper_cls.LeadConvert(lstleadConverted);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement