Tag: Apex

Batch Apex Example In Salesforce

Batch Apex Example In Salesforce

Batch Apex Example In Salesforce Batch Apex Example In Salesforce What is Batch Apex in Salesforce? Batch class in salesforce is used to run large jobs (think thousands or millions of records!) that would exceed normal processing limits. Using Batch Apex, you can process records asynchronously in batches (hence the name, “Batch Apex”) to stay …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/batch-apex-example-in-salesforce/

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: http://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: http://www.sfdcpoint.com/salesforce/apex-trigger-in-salesforce/

salesforce email service

salesforce email service

salesforce email service Salesforce Email service is automated process that use Apex class to process inbound email. When we set up an email service, we need to generate a special email address in which salesforce will receive your emails. We also need to create one apex class to implement Messaging.InboundEmailHandler interface . The email services …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/salesforce-email-service/

System.NullPointerException: Attempt to de-reference a null object

attempt to de-reference a null object

System.NullPointerException: Attempt to de-reference a null object How to solve System.NullPointerException: Attempt to de-reference a null object error System.NullPointerException: Attempt to de-reference a null object is very common error in apex class.  It occurs when your variable (sobject, list, set or any other data type) is not initialized (allocated memory). In order to use the non primitive data type …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/system-nullpointerexception-attempt-to-de-reference-a-null-object/

Using apex:repeat in Visualforce Page

Using apex:repeat in Visualforce Page Using apex:repeat in Visualforce Page apex:repeat is an iteration component that allows you to output the contents of a collection according to a structure that you specify. The collection can include up to 1,000 items. Note that if used within an <apex:pageBlockSection> or <apex:panelGrid> component, all content generated by a …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/using-apexrepeat-in-visualforce-page/

Salesforce Governor Limits

Governor Limits in Salesforce

Salesforce Governor Limits What is Salesforce Governor Limits? What are governor limits in salesforce? Salesforce Governor Limits Apex runtime engine strictly enforces limits to ensure that runaway Apex code or processes don’t monopolize shared resources. Why Salesforce has Governor Limits? Because Apex runs in a multitenant environment, the Apex runtime engine strictly enforces limits to ensure that …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/salesforce-governor-limits/

apex random number Salesforce

apex random number Salesforce apex random number Salesforce Many time we have requirement to generate random number in Apex. It can be achieved using Math.random() function. This method return a positive Double that is greater than or equal to 0.0 and less than 1.0. This method only returns number between 0.0 and 1.0. Now its important …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/apex-random-number-salesforce/

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: http://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: http://www.sfdcpoint.com/salesforce/salesforce-interview-questions-on-triggers/