How to Split String Method in Salesforce Apex

String Split by dot in Salesforce apex

While working as a Salesforce developer, I developed a feature that allows users to enter multiple email addresses separated by commas into a custom field. There, I had to extract and validate each email address individually. To separate the emails, I have used the split() function to extract the emails from the string field. In … Read more >>>

How to Use Switch Statement in Salesforce Apex

In the recent Salesforce Apex development, I assigned priority levels to customer support cases based on their issue type, such as “technical,” “billing,” etc. I had to assign a priority to each case, like “high,” “medium,” or “low,” based on the issue type. I could have used if-else statements, but management handled multiple issues throughout … Read more >>>

Reset and Change User Password Using Salesforce Apex

How to Reset Current User Password From Salesforce Apex

A Salesforce Developer team was developing a Salesforce application that required the ability to reset and change user passwords programmatically. To do this, I created an Apex class. Here, I will explain how to reset and change user password using Salesforce Apex. Reset Current User Password Using Salesforce Apex In the following Apex program, I explain … Read more >>>

How to Convert String to Blob in Salesforce Apex

Convert string to blob in Salesforce apec

In Salesforce, a Blob is a collection of binary data stored as a single object. We can convert this data type to or from a String using the toString and valueOf methods, respectively. Recently, while developing an Apex class to generate a text file with content and store it in Salesforce as an attachment or file, … Read more >>>

How to Create a Related List in Salesforce

How to Create a related list in salesforce

Our Salesforce org has a custom object, project, to track all the ongoing project activities. We had to link the Client(Account ) to the Project to track specific clients’ projects. On the client’s detail page, we could see the projects. A lookup relationship was needed with the Project object, so the project management team wanted to display the related … Read more >>>

Create Validation Rule in Salesforce

How to Create Validation Rule in Salesforce

I worked as a Salesforce admin for an organization that uses Salesforce CRM, and our sales team created opportunity records for converted leads. While creating opportunity records, they had to restrict the close date field so that it would not be less than today’s date. Whenever the sales rep enters the close date today or … Read more >>>

Convert String to Lowercase and Uppercase in Salesforce Apex

Convert String to Uppercase in Salesforce Apex

Our Salesforce organization recently implemented a customization for handling customer data. The customer service team needs a standardized format for customer names and emails in their records. The customer service representatives often enter names and emails in mixed cases, leading to inconsistencies. The team wants to enforce a standardized format to avoid duplicates and errors … Read more >>>

Get Picklist Value In Salesforce Apex Class

How to get picklist values in Salesforce apex class

Recently, I worked as a Salesforce developer for an organization that manages multiple office locations across different countries. The company uses a custom Salesforce object called OfficeLocation__c to store details about each office location, such as its address, city, state, and country. The Country__c field on the OfficeLocation__c object is a picklist that stores the … Read more >>>

How to Activate or Deactivate User From Salesforce Apex

Deactivate User Using Apex Class in Salesforce

The organization where I work as a Salesforce developer decided to upgrade a system according to Salesforce’s new update. During the upgrade, they wanted to deactivate users with specific profiles to ensure data security. I was assigned the task of deactivating all users with a particular profile. Here, I will explain how to activate or … Read more >>>

4 Hours Live Workshop

BUILD YOUR AI CRM ASSISTANT WITH AGENTFORCE

Build a Smart AI-Powered CRM Assistant with Agentforce in Just 4 Hours—Hands-On, Live, and Ready for Real-World Use!

27 August 2026 | 7 PM to 11 PM IST | 9:30 AM to 1:30 PM EST

Early Bird: $9 – First 15 Seats

Agentforce in Salesforce

DOWNLOAD FREE AGENTFORCE EBOOK

Start with AgentForce in Salesforce. Create your first agent and deploy to your Salesforce Org.