Skip to main content
CHANDRA KANT BAGHEL (Algoworks) 님이 #Automation에 질문했습니다

Can anybody specify id their is any difference between :

"Require validation for converted leads" vs "Enforce Validation and triggers from lead convert"?

If yes, then what is it?

 

These are basically the options given under lead settings. I found the former one in some orgs and in some help documents as well. But  have not found the later one in my orgs where as it is mentioned to be the possible cause of an error I am dealing with.

 

Thanks

답변 8개
  1. 2022년 9월 20일 오후 3:49

    Surely, I can Sir. the problem here is that we are expecting the trigger to run on convert operation but it is not executing.

     

    Here is the code: I feel it has nothing to do with code though,

    trigger LeadBeforeConversionTrigger on Lead (before update) {

    if(trigger.isBefore && trigger.isUpdate){

    for(Lead l : trigger.new){

    System.debug('lead Object ==>'+l);

    if(l.IsConverted){

    System.debug('date time ==>'+l.CreatedDate);

    }

    }

    }

    }