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 >>>

Convert a String to Decimal in Salesforce Apex

Salesforce apex Convert string to decimal list

While working as a Salesforce developer, I recently fixed an issue related to the input product pricing field data type. In the Salesforce application, there was a lightning component where the user could enter the product price, and by default, the input field was a string. To perform calculations with the entered value, such as … Read more >>>

Convert String to Boolean in Salesforce Apex

Convert String to Boolean in Salesforce Apex

Recently, I fixed a bug in a custom Salesforce Application where users had the option to turn off/on notifications. The preferences are stored as strings in a custom field on a User_Preference__c object. The possible values for this field are “true” or “false.” I had to convert these string values to Boolean values for the … Read more >>>

How to Get Current User Info Using Apex in Salesforce

How to Get Current User Info Using Apex in Salesforce

As a Salesforce Developer, I was required to display the details of the currently logged-in user, such as their name, email, and profile, in Salesforce. This feature might be used in a dashboard where users can see their account information. To achieve this requirement, I developed an Apex class that retrieves current user details. Here, … Read more >>>

How to Convert String to ID in Salesforce Apex

Convert and add list of string to set of ID in Salesforce Apex

While working on a Salesforce development project, I was debugging an Apex class that was supposed to update an account record based on its ID, but I kept encountering an “Invalid ID” error. Then, I tested and validated a string conversion to an ID type in the developer console to ensure the conversion logic worked … Read more >>>

live webinar

Build Your First Agentforce AI Agent in Salesforce

We will show demo on the complete process of building your first AI Agent in Salesforce using Agentforce. You’ll learn how agents work and how to connect your agent to Salesforce data to deliver intelligent business outcomes.

Agentforce in Salesforce

DOWNLOAD FREE AGENTFORCE EBOOK

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