Tag Archives: apex development

How to Create Quick action button using lightning web component

In this blog, we will learn How to Create Quick action button using lightning web component. To create the quick action button in the salesforce we have to perform the following steps: Create the Js-Meta-Xml File using the following code. JS-META-XML File in lightning web component Open Salesforce and go to the setup->Click on Object… Read More »

How to send CSV attachment in apex code

In this blog, we will discuss How to send csv attachment in apex code. Here, we are going to see how create a csv file with code and then we will send that file as attachment to the mail with the help of the apex code. Apex logic to send the csv attachment with mail:… Read More »

How to Fetch current Record Id from Lightning Web Components (LWC)

This blog discusses on how to fetch the current record Id in the lightning web component. RecordId property is used in the lightning record page, and the property, i.e., recordId, is set to a current record Id. We are using this property in a JavaScript class using a @api decorator, and we need to define… Read More »

How to call the apex method in lightning web component

This blog will help you learn how to call the apex method in the lightning web component. To perform the functions written in the apex class to perform a specific task and create new business solutions. There are two ways to call Apex method from Lightning Web Component: Call apex method Using Wire services. Call… Read More »

How to create records from Apex Restful Service in Salesforce

In this blog, we will learn how to use Apex Restful service to create salesforce records. We will use Workbench to call the apex restful service to perform this procedure.  Step 1. Firstly, Login to the Workbench by using your salesforce org. For instance, use this link to login into Workbench Login-workbench Now, select the… Read More »

How to call an APEX Class from a Screen-Flow

In this blog, we will discuss on how to invoke an Apex class from a Screen Flow through an simple example. In this example, we have created a Screen Flow in which we have created three variables. First one is recordId which is set as available for Input and Output both. RecordId Variable The second… Read More »

How to Avoid Null Pointer Exception By Using Safe Navigator Operator (?.)

In this blog, we will discuss how to Avoid Null Pointer Exception that occurred on various conditions by using the Safe Navigator Operator. In the recent update of Salesforce, Winter’21 introduced an Operator Named As Safe Navigator Operator(?.). Certainly, it is efficient & easy to understand the syntax for Salesforce Developers, making the coding clean.… Read More »

Creating Webservices using sites in Salesforce and access as REST API

The Salesforce Force.com REST API lets you integrate Salesforce applications using standard HTTP methods. This can then be used to integrate Salesforce with Sage ERP. With help of Apex REST, we can expose the data from Salesforce orgs and we can also fetch data from other systems which hits the particular webservice(URL).Since we are exposing… Read More »

Salesforce Platform Events – What are they & how to use

While there are tons of documentation highlighting about platform events and their use cases there are even trailhead modules, recently we came up with the question that how should someone be able to tell a Salesforce rookie what a platform event is? Yes, it’s a platform-based notification system which can help orchestrate a proper integration… Read More »

Creating SObject Dynamically by Using Id

While working on one of our projects, we faced a challenge where we were supposed to create the object, already existing in the database, dynamically from just an “Id”. We had no information other than the Id field of the record. We can use the functions of SObjectType class to create the instance of a… Read More »