Tag: trigger

Maximum Trigger Depth Exceeded Error Salesforce

Maximum Trigger Depth Exceeded Error Salesforce Maximum Trigger Depth Exceeded Error Salesforce occurs mainly due to recursion in the trigger. Recursion can occur because of many reasons. Recursion occurs when the same code is executed again and again. It can lead to an infinite loop and which can result in governor limit sometime. Sometimes it …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/maximum-trigger-depth-exceeded-error-salesforce/

Triggers in Salesforce

Triggers in Salesforce

Apex Triggers in Salesforce Apex Triggers in Salesforce What is Triggers in Salesforce? A trigger is an Apex script that executes before or after data manipulation language (DML) events occur. Apex triggers enable you to perform custom actions before or after events to record in Salesforce, such as insertions, updates, or deletions. Just like database …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/apex-trigger-in-salesforce/

salesforce order of execution

Salesforce order of execution

salesforce order of execution What is salesforce order of execution? What is order of execution in salesforce? salesforce order of execution When you save a record with an insert, update, or upsert statement, Salesforce performs the following events in order. Before Salesforce executes these events on the server, the browser runs JavaScript validation if the record contains any dependent …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/salesforce-order-of-execution/

Trigger context variables in salesforce

Trigger Context Variables

Trigger context variables in salesforce What are Trigger context variables in salesforce? Trigger context variables in salesforce All triggers define implicit variables that allow developers to access run-time context. These variables are contained in the System.Trigger class. Following are the context variable available in triggers. Please note variable availability in trigger varies according to the type …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/trigger-context-variables-in-salesforce/

Salesforce Interview Questions on Triggers

Salesforce Interview Questions on Triggers In this post I am going to share Salesforce Interview Questions on Triggers What is a Trigger? Apex triggers enable you to perform custom actions before or after events to records in Salesforce, such as insertions, updates, or deletions. Just like database systems support triggers, Apex provides trigger support for …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/salesforce-interview-questions-on-triggers/

Avoid recursive trigger in salesforce

Avoid recursive trigger in salesforce using static variable Avoid recursive trigger in salesforce using static variable Recursion occurs when same code is executed again and again. It can lead to infinite loop and which can result to governor limit sometime. Sometime it can also result in unexpected output. It is very common to have recursion …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/avoid-recursive-trigger-salesforce/

Trigger on Attachment in Salesforce

Debeloper Console 2

Trigger on Attachment in Salesforce Many times I have seen question from others that how can we write trigger on attachment in salesforce. For the Attachment, ContentDocument and Note standard objects, we can’t create a trigger in the Salesforce user interface. For these objects, we can create a trigger using development tools, such as the …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/trigger-on-attachment-in-salesforce/