You need to sign in to do that
Don't have an account?
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')"?
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 ) {}