Best Way to Pull Report of All Pending Approval Requests in Salesfore
REQUIREMENT SOLUTION 1ST APPROACH – Standard Report Type 2ND APPROACH – Custom Report Type Do you know the secret of field “Unread by Owner” on Lead, learn here.
REQUIREMENT SOLUTION 1ST APPROACH – Standard Report Type 2ND APPROACH – Custom Report Type Do you know the secret of field “Unread by Owner” on Lead, learn here.
Create a trigger that calculates the count of child records related to parent records. Implement a custom rollup summary field using an Apex trigger. Establish a rollup summary on a lookup relationship using a trigger. To illustrate the issue, let’s consider an example. We have a lookup relationship between Accounts and Contacts, and we need …
How to Compare Old and New Values in Salesforce Triggers In Salesforce triggers, we can check if record values have changed by comparing the old values to the new ones. The Before Update and After Update triggers are invoked based on the Update DML event occurring, regardless of which field value is updated on the …
How To Determine If Record Values Have Been Modified In Apex Triggers Read More »
A wrapper class in Salesforce Apex refers to a class, data structure, or abstract data type that encompasses various objects or collections of objects within its structure. A wrapper class is essentially a custom object created by a programmer, defining its properties according to specific needs. In Salesforce, when we think of a custom object, …
What Does The Term Wrapper Class Mean In Salesforce Apex? Read More »
Many Salesforce Apex developers are aware that in Salesforce, it’s widely accepted as a best practice that all code should be capable of handling bulk inserts, updates, and similar operations. When following this best practice, it’s common to use sets or lists as parameters in functions. Occasionally, there arises a necessity to convert between lists, …
Salesforce task records represent actionable items or tasks typically found on a to-do list. These tasks are usually linked to relevant records such as Leads, Opportunities, Contacts, or Accounts. Depending on your organization’s data model, it may also be appropriate to associate tasks with custom objects. Tasks offer significant utility for businesses. They enable users …
All The Essential Information On Task Creation In Salesforce Apex Read More »
GOAL This is very trivial requirement to get size of collection in flow. It’s not possible simply by checking the size as we can do it in apex. Here is an Idea for the same: Idea: Get Size of Collections in Flow SOLUTION We need to store the count of collection first in a Number …
I recently encountered a requirement where JavaScript was used to create a cookie and then later read by an Apex class. One might assume that creating a cookie in JavaScript and then accessing it in Apex using the exact same name would work, but that’s not quite how it functions. Cookies intended to be read …
How To Retrieve Cookies Set By JavaScript In A Salesforce Apex Class Read More »
Recently, I’ve been heavily involved in dynamic Apex and SOQL development. I encountered a requirement to create a custom AppExchange app capable of dynamically querying objects based on mappings provided by the admin and stored in custom settings. Initially, I was querying to check if the field existed and returning true if there was a …
Determining Dynamically Whether A Salesforce Field Exists In APEX Read More »
As you may be aware, Salesforce imposes strict governor limits that can lead to unexpected failures. One of the most common governor limits is the “Too many SOQL Queries” restriction. Additionally, developers often face challenges because Triggers may not execute on just one record but could involve up to 200 records at once. The main …
Achieving Salesforce Apex Bulkification In Three Simple Steps Read More »