Category Archives : Salesforce Apex Tutorial

Interfaces in Salesforce Apex

On January 22, 2024, Posted by , In Salesforce Apex Tutorial, With Comments Off on Interfaces in Salesforce Apex

Table of Contents What is an Interface? 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…

Objects in Apex Salesforce

On January 21, 2024, Posted by , In Salesforce Apex Tutorial, With Comments Off on Objects in Apex Salesforce

Table of Contents What is an Object in Salesforce? In Salesforce, an object is a database table that stores data related to your organization. It’s similar to a spreadsheet, where each object is a sheet, and the rows represent records, while the columns represent fields. There are two types of…

Methods in Salesforce Apex

On January 20, 2024, Posted by , In Salesforce Apex Tutorial, With Comments Off on Methods in Salesforce Apex

Table of Contents What is a method? A method in programming is a block of code designed to perform a specific task, encapsulated within a class or object, which can be called and executed whenever needed, often with the ability to receive inputs (parameters) and return a result. Here’s an…

What are classes in Apex programming?

On January 19, 2024, Posted by , In Salesforce Apex Tutorial, With Comments Off on What are classes in Apex programming?

Table Of Contents In Apex programming, classes are the foundation of object-oriented design. They allow me to create robust and reusable code structures. A class serves as a blueprint for defining objects. It encapsulates both data and behavior within a single entity. By using classes, I can group related attributes…

Collections in Apex Programming of Salesforce

On January 18, 2024, Posted by , In Salesforce Apex Tutorial, With Comments Off on Collections in Apex Programming of Salesforce

Tables of Contents A collection is a type of variable in apex that can store multiple items.Collections In Apex can be List, Set, or Map. Lists A list is an ordered collection of elements characterized by their indexes. A list element can be of any type, including primitive types, collections,…

Loops in Salesforce Apex

On January 17, 2024, Posted by , In Salesforce Apex Tutorial, With Comments Off on Loops in Salesforce Apex

Table of Contents: What is a Loop? A loop is a block of code that is repeated until a specified condition is met. Salesforce apex supports both traditional and advanced loop types. Using a loop statement, we can execute a statement or group of statements multiple times. Read more: Classes –…

Apex Decision Making in Salesforce

On January 16, 2024, Posted by , In Salesforce Apex Tutorial, With Comments Off on Apex Decision Making in Salesforce

Table of Contents Introduction A decision-making structure contains one or more conditions that are to be evaluated by the program, along with a statement or statements that should be executed if the condition is true, and maybe other statements if it is false. Here, we will discuss the structure of…

Constants in Salesforce Apex

On January 15, 2024, Posted by , In Salesforce Apex Tutorial, With Comments Off on Constants in Salesforce Apex

Table of Contents What are Apex constants? Constants in Salesforce Apex are fixed values that do not change during the execution of a program. They are defined using the final keyword, which means once a constant is assigned a value, it cannot be altered. Constants are useful when you want…

Array methods in Salesforce Apex

On January 14, 2024, Posted by , In Salesforce Apex Tutorial, With Comments Off on Array methods in Salesforce Apex

Table of Contents Arrays in the apex are collections of similar elements, where the memory is allocated sequentially. Each element in the array is located by index and the index value starts with zero. An array in Apex is basically the same as the list in Apex. What are Arrays…

Complete list of String Class Methods Apex in Salesforce

On January 12, 2024, Posted by , In Salesforce Apex Tutorial, With Comments Off on Complete list of String Class Methods Apex in Salesforce

Table of Contents In Apex, a string can contain any number of characters with no character limit, as in any other programming language. What is a String in Apex? In Salesforce Apex, the String class is a fundamental data type that is used to represent and manipulate a sequence of…