If there is an error executing the trigger, the creator of the trigger usually gets an email with an exception similar to this:
Developer script exception from RetrieveInfoOnLead : RetrieveInfoOnLead: execution of BeforeInsert caused by: System.StringException: Ending position out of bounds: 5 Trigger.RetrieveInfoOnLead: line 33, column 30
RetrieveInfoOnLead: execution of BeforeInsert
caused by: System.StringException: Ending position out of bounds: 5
I hope you can answer one more question. I did a little reading since posting my question. Can you confirm if this is correct? I am thinking that I should be able to add a try catch statement and send an email to a different user if there is an error while processing the trigger.
If there is an error executing the trigger, the creator of the trigger usually gets an email with an exception similar to this:
Developer script exception from RetrieveInfoOnLead : RetrieveInfoOnLead: execution of BeforeInsert caused by: System.StringException: Ending position out of bounds: 5 Trigger.RetrieveInfoOnLead: line 33, column 30
RetrieveInfoOnLead: execution of BeforeInsert
caused by: System.StringException: Ending position out of bounds: 5
Trigger.RetrieveInfoOnLead: line 33, column 30
I hope you can answer one more question. I did a little reading since posting my question. Can you confirm if this is correct? I am thinking that I should be able to add a try catch statement and send an email to a different user if there is an error while processing the trigger.
Thanks again.