Category Archives : Salesforce Apex Tutorial

Salesforce Apex Tutorial Chapter 21: Apex Invoking

On December 10, 2021, Posted by , In Salesforce Apex Tutorial, With Comments Off on Salesforce Apex Tutorial Chapter 21: Apex Invoking

Apex invoking means executing the Apex code. Apex class execution takes place through one of the ways listed below. The anonymous block and triggers An event that fires a trigger An asynchronous Apex A scheduler or batch job that runs Apex classes at specified intervals Web Services class Email Service…

Salesforce Apex Tutorial Chapter 20: Apex Security

On December 7, 2021, Posted by , In Salesforce Apex Tutorial, With Comments Off on Salesforce Apex Tutorial Chapter 20: Apex Security

The security of your code is crucial when using Apex. Apex security is the implementation of security settings and enforcement of current user sharing rules into the code of a running process. Apex code generally runs in the system context mode by default i.e, In the system context, Apex code…

Salesforce Apex Tutorial Chapter 19: Apex SOQL Query

On December 2, 2021, Posted by , In Salesforce Apex Tutorial, With Comments Off on Salesforce Apex Tutorial Chapter 19: Apex SOQL Query

SOQL stands for Salesforce Object Query Language. SOQL can be used to access information stored in your organization’s database. The syntax of SOQL is similar to that of SQL (Structured Query Language).SOQL queries can be written in Apex code or in the Query Editor of the Developer Console. In Soql…

Salesforce Apex Tutorial Chapter 18: Apex SOSL Query

On November 30, 2021, Posted by , In Salesforce Apex Tutorial, With Comments Off on Salesforce Apex Tutorial Chapter 18: Apex SOSL Query

Salesforce Object Search Language (SOSL) is used to perform text searches in Salesforce records. Using SOSL, you can search fields across multiple standard and custom objects in Salesforce. A SOSL query returns a list of lists of sObjects, where each list contains the results from the search for a particular…

Salesforce Apex Tutorial Chapter 17: Database Methods In Apex

On November 22, 2021, Posted by , In Salesforce Apex Tutorial, With Comments Off on Salesforce Apex Tutorial Chapter 17: Database Methods In Apex

Apex provides two ways to perform DML operations, DML statements and Database methods. Following are the basic differences between the DML statements and the Database methods. DML Statements Database Methods DML statements do not support the partial manipulation of records in a list. Database methods allow partial manipulation of records…

Salesforce Apex Tutorial Chapter 16: DML In Apex

On November 17, 2021, Posted by , In Salesforce Apex Tutorial, With Comments Off on Salesforce Apex Tutorial Chapter 16: DML In Apex

Apex is a data-driven language registered on the Lightning Platform. Therefore, it has direct access to your data in Salesforce. Unlike other programming languages ​​that require additional configuration to connect to data sources. DML stands for Data Manipulation Language which lets you Insert, Update, Delete, Undelete records in Apex. DML…

Salesforce Apex Tutorial Chapter 15: Apex Interfaces

On November 12, 2021, Posted by , In Salesforce Apex Tutorial, With Comments Off on Salesforce Apex Tutorial Chapter 15: Apex Interfaces

An Interface is similar to a class having methods without a body that means only method signature is available in the Interface but the body of the methods is empty. To use an Interface in class, the body of all the methods contained in the interface must be implemented in…

Salesforce Apex Tutorial Chapter 14: Apex Objects

On November 9, 2021, Posted by , In Salesforce Apex Tutorial, With Comments Off on Salesforce Apex Tutorial Chapter 14: Apex Objects

An object is an instance of a class. The object can be a class object in Salesforce, or it can also be an object of sObject. Object creation In Apex: An object of the class can be created in the same way as created in Java or another object-oriented programming…

Salesforce Apex Tutorial Chapter 13: Apex Methods

On November 4, 2021, Posted by , In Salesforce Apex Tutorial, With Comments Off on Salesforce Apex Tutorial Chapter 13: Apex Methods

Syntax: Example:

Salesforce Apex Tutorial Chapter 12: Apex Classes

On November 1, 2021, Posted by , In Salesforce Apex Tutorial, With Comments Off on Salesforce Apex Tutorial Chapter 12: Apex Classes

Example: Let’s take a look at Apex Access Specifiers: Following are the apex modifiers supported by the apex. Private: This access specifier gives access to a class, method, variable to be used locally or within the section of code it is defined. All classes, methods, and variables that do not…