Category: Apex

What is Recursive Trigger in Salesforce?

A recursive trigger in Salesforce is one that performs an action, such as an update or insert, which invokes itself owing to,  say something like an update it performs. Recursion is the process of executing the same task multiple times. There may be chances to hit the Governor Limit with Recursive Trigger. Below example shows what …

Collections in Apex (List, Set, Maps)

Welcome to learnsalesforce.co, in this Salesforce tutorial you will learn the different types of collections in Apex, how collections are related to each other, how to define each collection and when we use collections in Apex. In every programming language, there are collections. The collection could be considered as a type of variable that can store …

Introduction to Salesforce

What is Salesforce? Salesforce is a cloud-based CRM platform. It is a SaaS (Software as a Service) platform offering customer relationship management services on the cloud. Being on cloud, Salesforce application can be accessed from anywhere at any time. This is the biggest benefit of the SaaS platform, as one can use the application suite even …

Useful chrome extensions in Salesforce

Salesforce is a web-based application. It opens right on the browser, and we can perform all the operations on the Salesforce, from the web browser. This becomes much easier when we are accessing Salesforce from the Google Chrome browser. We have extensions available on Google Chrome, that can add multiple benefits to the Salesforce platform. In …

Generating Dynamic SOQL Query in Apex

Generating a Dynamic SOQL query in Apex refers to the creation of a SOQL string at runtime with Apex code. Dynamic SOLQ enables the user to create more flexible applications, we can create a search based on input from an end-user and update records with varying field names. To create a Dynamic SOQL in Salesforce at …

Apex Triggers in Salesforce

Apex Triggers are special bundles of code that fire whenever an appropriate database action occurs. We can use Apex triggers to allow us to define complex logical processes that occur whenever a record is changed against the Salesforce database. Salesforce Apex triggers are executed based on record manipulation, results in the updation, insertion, or deletion of …

Salesforce Triggers Overview

Salesforce Triggers is a bunch of code that is executed based on record manipulation, results in the updation, insertion, or deletion of records or records. If any record is inserted, deleted, or updated, we can write a trigger and do some work with the code. When working with a database, we will sometimes want to perform certain …

Variables in Apex

Variables are the most basic of all programming concepts but are the foundation upon which everything else is built. So what is a Variable? A variable is a store for some data that can change (or vary) over time. If you have done algebra at school you will be familiar with variables such as x = …