20 lines
471 B
OpenEdge ABL
20 lines
471 B
OpenEdge ABL
public class AccountTriggerHandler {
|
|
public static boolean firstCreation = True;
|
|
|
|
public static void createCustomer(List<Account> accList){
|
|
if(firstCreation){
|
|
|
|
|
|
for (Account acc : accList ) {
|
|
if (acc.Id != null) {
|
|
System.debug('Triggered Account Id: ' + acc.Id);
|
|
system.enqueueJob(new RiabuAccountToCustomer(acc.Id));
|
|
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
} |