first commit Riabu
This commit is contained in:
20
force-app/main/default/classes/AccountTriggerHandler.cls
Normal file
20
force-app/main/default/classes/AccountTriggerHandler.cls
Normal file
@@ -0,0 +1,20 @@
|
||||
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));
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user