Category: 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: https://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: https://www.sfdcpoint.com/salesforce/system-nullpointerexception-attempt-to-de-reference-a-null-object/

Assignment rules in Salesforce

Assignment rules in Salesforce

Assignment rules in Salesforce What are assignment rules in salesforce? Assignment rules in salesforce are used to automatically assign lead or Case to owner(User Or Queue). Assignment rule is used to automate owner assignment on Case and Lead based on conditions on Case or Lead. For example, there could on lead assignment rule for web-generated …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/assignment-rules-in-salesforce/

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: https://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: https://www.sfdcpoint.com/salesforce/salesforce-governor-limits/

aura:if tag Lightning component example

aura if tag Lightning component example output

aura:if tag Lightning component example aura:if tag Lightning component example aura if renders the content within the tag if the isTrue attribute evaluates to true. The framework evaluates the isTrue expression and instantiates components either in its body or else attribute. Difference between aura if and aura renderIf aura:if instantiates the components in either its body or the else attribute, but not both. aura:renderIf instantiates both the components …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/auraif-tag-lightning-component-example/

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: https://www.sfdcpoint.com/salesforce/apex-random-number-salesforce/

Delete Lightning Component in Salesforce

Delete Lightning Component in Salesforce

Delete Lightning Component in Salesforce Delete Lightning Component in Salesforce is very easy. If we don’t want to use IDE like sublime or Eclipse then we can use developer console. Open Developer Console Open Your lightning component from File -> Open Lightning Resource Click on File Delete or use shortcut Ctrl+Delete   Salesforce Lightning Interview …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/delete-lightning-component-in-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: 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/