Convert String to Date in Salesforce Apex

Salesforce apex convert string to date

In a recent Salesforce development task, I worked on a Salesforce application that required me to collect customer information through a web form. One of the fields in this form is the customer’s preferred appointment date, which is submitted as a string. I had to convert the string to the date data type to save … Read more >>>

Salesforce Quote | How to Create a Quote in Salesforce

quote object in salesforce

While working as a Sales representative for an organization that uses Salesforce to manage its Sales and CRM processes, one potential customer reached out to me to discuss subscribing to our software solution, which includes both licenses and implementation services. After the discussion, I had to send him a quotation for how much the software … Read more >>>

Variables and Data Types in Salesforce Apex

Variables and Data Types in Salesforce Apex

In Salesforce, Apex is a programming language used to work with the UI and data model in the org. Apex is designed to solve complex business logic that we cannot complete using a declarative approach. In this tutorial, I will explain variables and data types in Salesforce Apex, as well as various data types and … Read more >>>

How to Get Current Datetime in Apex Salesforce

How to get my correct current local time in Apex

The organization where I work as a Salesforce developer has a global Salesforce implementation with users in multiple time zones. When scheduling tasks or reminders, it’s crucial to ensure that each user creates these events at the correct local time. When a user logs in to Salesforce, the system must display the current time and … Read more >>>

Convert a String to an Integer using Apex in Salesforce

Salesforce apex convert string to integer

Recently, while building a custom class for user input in my Salesforce org, where I was customizing the fields for the Contact object, I noticed a custom field ‘age’ in the contact that stores the data in string format. I had to convert this string data into an integer to make it convenient to validate … Read more >>>

Unable to Activate the Apex Language Server

Salesforce Apex Language Server Error

Recently, I installed the Salesforce CLI and set up VS Code with the Salesforce extensions. After creating a new project, when I try to open an Apex file, I receive the error message “unable to activate the Apex language server.” Then, after going through the VS Code settings, I found out that the JDK path … Read more >>>

How to Connect VS Code to Salesforce Org

I recently started a new role as a Salesforce Developer at a small startup consultancy. For the first time, I had to set up Visual Studio Code for Salesforce. VS Code is the most appealing option due to its suite of Salesforce add-ons and SFDX integrations. Here, I will explain how to connect VS Code to … Read more >>>

Create Queue in Salesforce

Create Queue in Salesforce

I was working on Service Cloud in an organization that uses Salesforce CRM. Recently, our organization sought to enhance its case management process by streamlining the organization of support cases. To do this, they want to set up a queue in Salesforce to handle “High” priority cases. This will allow multiple support agents to work … Read more >>>

How to Make a Contact Primary in Salesforce Opportunities

Set Contact as primary in Salesforce opportunity using flow

While working as a system admin for a Salesforce org, I received a requirement from a Sales representative to set a specific contact as the primary contact in an opportunity record. The opportunity is progressing well, and several key contacts were added to the opportunity, so, according to the requirement, I had to make contact … Read more >>>

live webinar

Salesforce Data Cloud with Agentforce Data Library

In this live webinar, we will showcase how Salesforce AI Agents use business data and documents to provide intelligent responses using Agentforce Data Library and Salesforce Data Cloud.

Agentforce in Salesforce

DOWNLOAD FREE AGENTFORCE EBOOK

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