first commit Riabu
This commit is contained in:
12
force-app/main/default/triggers/ContactTrigger.trigger
Normal file
12
force-app/main/default/triggers/ContactTrigger.trigger
Normal file
@@ -0,0 +1,12 @@
|
||||
trigger ContactTrigger on Contact (after insert, after update) {
|
||||
|
||||
if (Trigger.isAfter) {
|
||||
if (Trigger.isInsert || Trigger.isUpdate) {
|
||||
// Only run trigger logic if allowed
|
||||
if (ContactTriggerHandler.becamePrimary) {
|
||||
System.debug('Trigger executed - becamePrimary is TRUE');
|
||||
// your logic here if needed
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user