Test Class for Apex REST Callout

A Developer wants to implement a connection from Salesforce to a 3rd party API using Apex; A great method for retrieving external data is to implement a HTTP callout process using Apex. How can we run test class for callout ? As you may know, Apex Test Classes will not let us conduct a HTTP callout; therefore, it…

How to implement Visualforce Component with Attributes ?

A Developer wants to implement such functionality or code which is required in multiple visualforce pages. So instead of repeating  the same code again and again, we can create visualforce component. Then we can use visualforce component in every place where we need that particular piece of code. In other words, custom visualforce component allows…

Salesforce DX – Source Code Deployment using CLI and VS Code Extension

The Salesforce Developer Experience (DX) is a new set of tools that streamlines the entire development life cycle. It improves team development and collaboration, facilitates automated testing and continuous integration, and makes the release cycle more efficient and agile. It provides an alternative to change set development, and shifts the source of truth from the…

Salesforce Platform Cache & Partitions using Apex

Platform Cache Platform Cache is a memory layer that stores Salesforce session and org data for later access which improves the performance of your applications. Platform Cache improves performance by distributing cache space so that some applications or operations don’t steal capacity from others. Salesforce allow you to create partitions. Partitions allow you to distribute cache…

Lightning Locker Service

Lightning Locker is a layer which sits in between your browser and DOM (document object). In other words, Lightning Locker is a virtual browser that allows only secure request to go through from client to server. This virtual browser sits in front of your real browser.  It creates a separate layer. Without such a layer…

Lightning Series 2 – Building Simple Lightning App to insert a record

Salesforce Lightning is a component-based framework for application development. A Developer can build responsive applications for any device using lightning which include an out-of-the-box set of components, event-driven architecture, and a framework optimized for performance. The Lightning Component framework is a UI framework for developing dynamic web apps for mobile and desktop devices. It uses JavaScript on the…

Lightning Series 1 – Building a Simple Lightning App to Search and list Records

Let’s start searching and listing records through lightning components. We used to create tables using pageBlockTable in visualforce pages. In lightning, we either use HTML tables or inbuilt component tags like (lightning:datatable) to display the data in rows and columns format. Data tables are an enhanced version of an HTML table and are used to display…

How to deploy apex code using ANT ?

A developer want to push the components/metadata like Objects, Fields , Validation Rules, Workflows and Apex Code etc. We can use Change Set, Force.com IDE and ANT Migration tool. However there are some extra features provided in this ANT migration tool. In this blog, we are gonna demonstrate the most powerful tool ANT mostly used…