Salesforce Optimizer
Table Of Content Salesforce Optimizer is a powerful, free tool available in the Lightning Experience app for Professional, Enterprise, Performance, Unlimited, and Developer Editions. It helps you identify potential issues in your Salesforce org by providing detailed insights across more than 50 metrics. These insights cover everything from storage, fields,…
Deserialize JSON with Reserved Keywords in Apex?
Question I need to deserialize a JSON string into an Apex object, but some of the property names in the JSON are reserved words in Apex. For example: However, this results in a compilation error because “currency” is a reserved keyword in Apex. How can I handle this issue while…
How Can We Deploy Apex Classes That Are Scheduled?
Question When deploying Apex classes that are scheduled, the main challenge is that Salesforce locks scheduled Apex jobs to the specific class they reference. This can cause deployment failures if you try to update a scheduled class without first unscheduling its jobs. How can we effectively deploy updates to scheduled…
Salesforce Schema Builder
Table Of Contents Navigating the complexities of Salesforce architecture requires a robust understanding of its data model and the relationships between various objects. The Schema Builder is an invaluable tool for both new and experienced Salesforce users, offering a visual representation of the system’s structure. Our Salesforce training in India…
Can sObjects Be Used as Keys in an Apex Map?
Question Are sObjects supported as keys in an Apex Map? I initially thought they were, but I observed that modifying an sObject after inserting it into the map seems to break the mapping. Here’s an example in anonymous Apex (API v27.0) demonstrating the issue: This results in the following error:…
Why Is My Code Coverage Low and How Can I Fix It?
Question Code coverage is a measurement of how many unique lines of code are executed when running automated tests. The percentage is calculated Code Coverage = Covered Lines/ Covered Lines+Uncovered Lines * 100 Only executable lines are counted—comments, blank lines, System.debug() statements, and standalone curly braces {} are ignored. However, even after writing test…
Can You Use Built-in Lightning Components in Aura?
Question I have a form where users need to select 3 out of 5 products, similar to the Order > Add Product modal. I was wondering if there is a way to bring that functionality into my Aura component while applying a filter to display only the products I want…
List Views in Salesforce
Table Of Contents In Salesforce, List Views allow users to filter records based on specific fields, enabling easy access to relevant data. They are instrumental in organizing records and providing the capability to manage multiple records simultaneously. By creating custom List Views, users can streamline tasks and enhance productivity. List…
Why Can’t I Add a Property to the Apex Result Array?
Question I’m trying to add a new property called showDeleteButton to each object in the result array returned from an Apex call. However, when I include the result.forEach line, the code after it does not execute. It seems like the mutation is not working as expected, and the array remains…

