+ Start a Discussion
LaKeisha JordanLaKeisha Jordan 

Can someone please verify if my Apex Trigger is correct? trigger Region on Regions__c (before insert, after insert) {

prateek jainprateek jain
Hi
Your Code is Missing
Thanks
 
Dev_AryaDev_Arya
Hi LaKeisha,

from whatever code I could see, i believe it is correct :-)

Cheers
Sandeep Khandelwal 8Sandeep Khandelwal 8
Hi LaKeisha,

What ever code you have written which i see in the screen i.e.

trigger Region on Regions__c (before insert, after insert) {

You have a missing closing curly braces '}' to the end.

Sample -
 
trigger Region on Regions__c (before insert, after insert) {
  //do something
}

 
LaKeisha JordanLaKeisha Jordan
Here is the full Apex Trigger:
trigger Region_cLeadTrigger on Lead (before insert, before update, after insert, after update) {
   
}

}
LaKeisha JordanLaKeisha Jordan
The Trigger needs to fire on the Lead record only as the Lead is integrated from the Web into Salesforce.