Create Lightning Component

To create a component (DeveloperConsole–File–New–Lightning Component) FirstComponent.cmp

Working Demo  

Continue reading

Validation Rules

Define Validation Rules Validating if the data entered A validation rule can contain a formula or expression that evaluates the data in one or more fields and returns a value of “True” or “False”. Validation rules also include an error message to display to the user when the rule returns a value of “True” due […]

Continue reading


You need to remember a few key words while using Inheritance.Virtual or Abstract need to use on Base Class (Parent Class) and Methods. Virtual Keyword states that a class or Method can be inherited and overridden by child classes. super keyword is used to call Base class methods. override keyword need to use if you […]

Continue reading

SingleEmailMessage through Apex

[code language=”java”] public class EmailManager { // Public method public static void sendMail(String address, String subject, String body) { // Create an email message object Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); String[] toAddresses = new String[] {address}; mail.setToAddresses(toAddresses); mail.setSubject(subject); mail.setPlainTextBody(body); // Pass this email message to the built-in sendEmail method // of the Messaging class Messaging.SendEmailResult[] […]

Continue reading

How to create a records with a button in Salesforce Lightning

Apex class —————

Baisc.cmp ————

Controller ————–

Lightning Application —————————-

Continue reading