Exception Handling in Salesforce Apex

Exception Class Methods in Salesforce Apex

In Salesforce Apex, whenever we want to handle an error or event that interrupts the flow of code execution and disturbs the application’s normal flow, we can use exception handling to keep the application running normally. In this Salesforce Apex tutorial, we will learn about exception handling in Salesforce Apex. I have explained what exceptions … Read more >>>

Change Column Name in Salesforce Reports

Salesforce Reports Change Column Name

In Salesforce, reports can be customized on a large scale, allowing us to tailor them to our specific requirements. When you need to change the column name in Salesforce reports, it can be done for reports created by custom report types. In this Salesforce tutorial, we will learn how to change column names in Salesforce … Read more >>>

Get Current Record ID in Salesforce Flows

How to get record id in Salesforce flow

In Salesforce flows, accessing the current record’s ID is often essential, especially for updating, deleting, or fetching related records. In this Salesforce tutorial, we will learn how to get the current Record ID in Salesforce Flows. Specifically, the screen flows. Get Current Record ID in Salesforce Screen Flow To obtain a current record ID in … Read more >>>

Dependency Injection in Salesforce Apex Class

Dependency Injection in Salesforce Apex Class

In Salesforce, when we develop an Apex app or any Apex Class, we ensure the code is clean and maintainable to avoid difficulties during testing. However, testing and debugging can be complex when your code depends on other classes or services. In this scenario, we utilize dependency injection in Salesforce Apex code. This technique of structuring the code allows … Read more >>>

Apex String Methods to Determine Character Types in Salesforce

Apex String Methods to Determine Character Types in Salesforce

In this Salesforce Apex tutorial, we will learn about some Apex string methods to determine character types in Salesforce, ensuring that the data the user enters matches the criteria. Apex String Methods to Determine Character Types in Salesforce In Salesforce, Apex string methods are used to determine the character types, such as letters, digits, and … Read more >>>

How to Upload Files in Salesforce

Add Files to object record in Salesforce

In our Salesforce organization, every time we onboard a new client, we ensure that all their important documents are properly uploaded to the Salesforce database. For each Account, we need to upload files like agreements, contracts, and images to store the ID proofs. By uploading files directly to the Account or any other object record, … Read more >>>

How to Upload Files Using Screen Flow in Salesforce 

Salesforce Screen flow to upload file on record page

In Salesforce, we create and implement flows to automate the data process and maintain records in the org. With the help of a Salesforce flow, we can also upload files to records or related records. In this Salesforce tutorial, I will explain the method to upload files using Screen Flow in Salesforce. Upload Files Using … Read more >>>

How to Create Wrapper Class in Salesforce Apex

Wrapper class in Salesforce Apex

In Salesforce Apex, we store record data using different data types. When we often work with complex data structures or manage multiple objects in a single list, we are unsure whether the method output type will be a string, a number, or a boolean. In this situation, we use the Apex Wrapper Classes, which store … Read more >>>

Access Modifiers in Salesforce Apex Classes

Protected Access Identifier in Salesforce Apex

In Salesforce Apex, we define the access level of Apex classes using access modifiers, which are also referred to as access specifiers. These modifier keywords define the visibility and accessibility of classes and their members (methods and variables). They help implement encapsulation, maintain the application’s security, and controlling how and where the code can be … Read more >>>

Create Named Credential in Salesforce

Create New Named Credentials in Salesforce

When we want to send data from Salesforce to an external system like a Google API or a payment system, we need to provide authentication details (username, password, or access token). If we write these details directly in Apex code, it is not secure and difficult to maintain. To solve this, we create a Named … Read more >>>