Category Archives : Salesforce Apex Tutorial

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…

Variables in Apex programming in Salesforce

On January 9, 2024, Posted by , In Salesforce Apex Tutorial, With Comments Off on Variables in Apex programming in Salesforce

Table of Contents What is a variable? In Apex, a variable is a named storage location that holds a value which can be changed during the execution of the program. Think of it as a container or a small box where you can store information. This information can be a…

Apex programming Examples

On January 6, 2024, Posted by , In Salesforce Apex Tutorial, With Comments Off on Apex programming Examples

Table of Contents Here we will use the Developer Edition Environment of salesforce and In this example, we will discuss object and field creation in Salesforce and how to use them in code for implementing business logic. Apex Trigger for Account An Apex Trigger for Account is a custom script…

Full List of Data Types In Salesforce Apex

On January 4, 2024, Posted by , In Salesforce Apex Tutorial, With Comments Off on Full List of Data Types In Salesforce Apex

Table of Contents What are data types? A data type in programming specifies the kind of data a variable can hold, such as numbers, text, or complex structures, defining its operations and storage. A data type is like a label for data, telling the computer what kind of information (like…