Convert String to sObject in Salesforce Apex

How to convert String to sObject in Salesforce apex

While building a custom app in our Salesforce org, I added a feature where users can input the object’s name and other fields as strings. That dynamically creates and populates records based on user input or another source. In this case, I had to create an account record using a string to specify the object … Read more >>>

SOQL Query in Apex Programming

SOQL Query in Apex Programming

We used SOQL(Salesforce Object Query Language) to retrieve the data from the Salesforce database according to the specified conditions and objects.  These objects can be both standard and custom. Similar to all Apex code, SOQL is also not case-sensitive. SOQL is also used in Apex to query Salesforce data stored in the database. In this … Read more >>>

Convert a JSON String To Map in Salesforce Apex

Convert JSON string to map in Salesforce apex

Recently, in our Salesforce Org, we were developing an application that integrates with an external API to fetch customer information. The API returns customer details in JSON format, so we have to parse this JSON string to store it in a Map for access within the Apex code. In this Salesforce tutorial, I will explain … Read more >>>

Get User Or Logged-In User Details Using SOQL

Get User Or Logged-In User Details Using SOQL

As a Salesforce developer, I was required to display the details of the currently logged-in user or other users in the Salesforce org, such as their name, email, and profile, within 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 … Read more >>>

Custom Iterator Interface in Salesforce Apex

Custom iterators in Salesforce Apex

In Salesforce Apex development, an iterator passes through every item in a collection. In conditions such as loop conditions, we provide some means to pass through the collection, that is, an iterator in Apex. In this Salesforce tutorial, we will learn about iterators and how to use the Iterator Interface in Salesforce Apex. What are … Read more >>>

Track Object Field History in Salesforce Using SOQL

SOQL query to track fields with enabled field history in Salesforce

In Salesforce, we have a feature that allows us to track the changes made to fields through field history tracking. We can retrieve the details of the field in Salesforce Relationship Queries in SOQL to obtain the details of changes in the object’s field values. In this Salesforce tutorial, I will explain how we can track … Read more >>>

How to Create a Mock Callout to Test the Apex Rest Callout in Salesforce?

Apex test class to run Mock callout

In Salesforce development, test methods don’t support web service callouts by default, and tests that perform web service callouts fail. When testing Apex code that makes HTTP callouts, Salesforce imposes restrictions that prevent actual callouts from being made in a test environment. To bypass this limitation, we can create a mock callout. Mock callouts allow … Read more >>>

For Clause in SOQL (Salesforce Object Query Language)

FOR VIEW Clause in SOQL Query

In Salesforce Object Query Language (SOQL), we have seen different clauses in previous articles. Now, the FOR clause is a unique and advanced feature that improves query performance and functionality in specific scenarios. In this Salesforce tutorial, we will learn about the FOR clause in SOQL (Salesforce Object Query Language). In that, I will explain the functionality … Read more >>>

Validate CRUD Permission Before SOQL/DML Operation in Salesforce

Create permission in Salesforce DML operations

In Salesforce, while we do development, ensuring data security is important, and we can do that using the CRUD feature. CRUD permissions allow us to define what a user can do with different data types. Validating these permissions before performing SOQL or DML operations helps maintain the security of the org application and protects sensitive … Read more >>>

SOQL Query on Group and GroupMember in Salesforce

Query inactive users from groups in Salesforce

In Salesforce, the Group object stores multiple data types, including public groups, queues, roles, etc. We can see and retrieve all the data type values from the group object using the SOQL query. In this Salesforce tutorial, I will explain how to query Salesforce Group and Group Members in a SOQL query for different scenarios. … Read more >>>

Agentforce in Salesforce

DOWNLOAD FREE AGENTFORCE EBOOK

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

Salesforce flows complete guide

FREE SALESFORCE FLOW EBOOK

Learn how to work with flows in Salesforce with 5 different real time examples.