function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kittu9kittu9 

what is meant by "PAD.CanTrigger('AP16')"?

trigger OpportunityAfterUpdate on Opportunity (after update) 
{
    if(PAD.CanTrigger('AP16')){
        Id recTypeId = [SELECT Id FROM RecordType where SobjectType='Opportunity' AND DeveloperName =:'Local_Opportunity' limit 1].Id;
        List<Id> listOpp = new List<Id>();
        System.debug('##############Trigger step 1');
        for(Opportunity o : Trigger.New){
            if(o.recordTypeId == recTypeId && o.StageName == 'Inforce' && o.Existing_Contract__c != null && Trigger.oldMap.get(o.Id).StageName != Trigger.newMap.get(o.Id).StageName && o.Create_LP__c == false){
                listOpp.add(o.Id);
            }
        }

}

what is meant by "PAD.CanTrigger('AP16')"?

wt35wt35

It is probably an Apex class that has been developed within your org.

 

Go to Setup >> Develop > Apex Classes

 

There should be one called "PAD" , and inside you should have a method that looks like the following:

 

boolean CanTrigger(String s ) {}

JLA.ovhJLA.ovh
The last version of PAD (https://jla.ovh/pad)can be found here : https://jla.ovh/pad