Part IV. 1. Page Creation in Salesforce

Create the Visualforce Page Follow these steps to create a Visualforce page in the Developer Console. Open the Developer Console under Your Name or the quick access menu (). The Developer Console opens in a new window. Click File | New | Visualforce Page. Enter HelloWorld for the name of the new page, and click OK. A new, blank Visualforce page opens in the Developer…


Part IV. 2. Apex Class Creation in Salesforce

In this Training, you create an EmailManager class that encapsulates the logic to send confirmation emails to the conference speakers. Step 1: Create the EmailManager class 1.Click  and select Developer Console. 2.In the Developer Console, click File > New > Apex Class. Specify EmailManager as the class name and click OK. 3.Paste the following into the Developer Console. public with sharing class EmailManager{ public void…


Part IV. 3. SOQL Basics in Salesforce

To read a record from Salesforce, you need to write a query. Salesforce provides the Salesforce Object Query Language, or SOQL in short, that you can use to read saved records. SOQL is similar to the standard SQL language but is customized for the Lightning Platform. Because Apex has direct access to Salesforce records that…


Part IV. 4. Trigger Creation in Salesforce

Writing Apex Triggers 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 managing records. Typically, you use triggers to perform operations based on specific conditions, to modify related records or restrict…


Part IV. 5. Test Class Creation in Salesforce

Writing Test Class in Salesforce The Apex testing framework enables you to write and execute tests for your Apex classes and triggers on the Lightning Platform. Apex unit tests ensure high quality for your Apex code and let you meet requirements for deploying Apex. Testing is the key to successful long-term development and is a…


Part IV. 6. Components Creation in Salesforce

To define a custom component for use in a Visualforce page: In Salesforce from Setup, enter Components in the Quick Find box, then select Visualforce Components. Click New. In the Label text box, enter the text that should be used to identify the custom component in Setup tools. In the Name text box, enter the text that should identify this custom component in Visualforce markup.…


Part IV. 7. Batch Class Creation in Salesforce

In this training, you create and execute a batch class. Batch Apex Batch Apex 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 within platform limits. If you have…


Part IV. 8. Lightning Basics in Salesforce

Welcome to Lightning Experience, the modern, beautiful user experience from Salesforce. Salesforce focused on reinventing the desktop environment to better support your business processes. The result is an intuitive, intelligent interface that helps sales and service teams work more naturally and productively.Lightning Experience extends to service, apps, platform, and more. Why Salesforce Built Lightning Experience…