Category Archives : Salesforce Technical Questions

Passing Parameters to a Lightning Component Quick Action?

On August 19, 2025, Posted by , In LWC Essentials,Salesforce Technical Questions, With Comments Off on Passing Parameters to a Lightning Component Quick Action?

Question: I have a Lightning component that is used as a quick action on multiple objects, such as Account and Contact. When the component is invoked, I can retrieve the recordId using: However, I also need to pass a custom parameter when invoking the quick action and retrieve it inside…

Updating PermissionSetTabSetting Without Metadata API?

On August 14, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on Updating PermissionSetTabSetting Without Metadata API?

Question: I need to update the visibility settings for tabs within a Permission Set in Apex. I successfully retrieved PermissionSetTabSetting records but encountered an issue when trying to upsert changes in a loop. Here’s my approach: However, I keep getting this error:System.DmlException: Upsert failed. First exception on row X; first…

Why Should Unit Tests Avoid Data Silos?

On August 13, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on Why Should Unit Tests Avoid Data Silos?

Question: Why is it important to create our own data when writing unit tests? Many developers advise against using seeAllData=true, but the reasoning is often not fully explained. How do data silos impact test consistency, reliability, and troubleshooting across different environments? Answer: The key reason for avoiding data silos in…

LWC Custom Path: How to Conditionally Exclude Stages?

On August 9, 2025, Posted by , In LWC Essentials,Salesforce Technical Questions, With Comments Off on LWC Custom Path: How to Conditionally Exclude Stages?

Question I have a custom LWC component that builds a Path to display the full picklist value name instead of just a tick when a stage is completed. The original implementation works correctly, but I now have a requirement to exclude certain stages based on a condition. Here is the…

APEX Test Class Failures in Production?

On August 7, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on APEX Test Class Failures in Production?

Question: I’m trying to deploy an additional field into an existing Aura component bundle in my production org to improve the user interface. However, I keep encountering APEX test failures on the following test classes: CalculateexchangerateTest and UpdatePBTest. I am not proficient in APEX and did not build these test…

Testing Apex That Relies on Field History Tracking?

On August 5, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on Testing Apex That Relies on Field History Tracking?

Question I have Apex code that queries the history records of a custom object using field history tracking. This works fine in a real environment, but when I run my unit tests, no history records are created, causing my tests to fail. How can I test code that depends on…

Bounced Emails and Email Confirmation in Salesforce?

On August 3, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on Bounced Emails and Email Confirmation in Salesforce?

Question In Salesforce, when an email bounces, the system marks it with a bounce warning and provides details near the email address. In Lightning Experience, this information appears as an alert near the email field. However, in Salesforce Classic, an additional “Confirm Email Address” link is available. Does the “Confirm…

HTTP Callouts from Triggers?

On August 1, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on HTTP Callouts from Triggers?

Question I have a trigger on a custom object that calls a class. This class makes an HTTP GET request to an external web service. However, I encounter the following error: How can I send data to an external web service from a trigger and receive an acknowledgment? While I…

How to Screen Scrape Salesforce with REST GET in Apex?

On July 31, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on How to Screen Scrape Salesforce with REST GET in Apex?

Question: How can you make a REST GET call from Apex to retrieve data from Salesforce, particularly from standard pages like /001/o or /home/home.jsp? When using the standard Salesforce REST API, the request works for objects (e.g., /services/data/v26.0/sobjects/User/describe), but trying to scrape a regular page results in receiving a placeholder…

Handling Large Batches in Salesforce Without Governor Limit Errors

On July 31, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on Handling Large Batches in Salesforce Without Governor Limit Errors

When creating a large number of accounts and associated contacts in a batch process, you may encounter System.LimitException: Too many DML rows: 10001 due to Salesforce’s governor limits. For example, if you attempt to insert 10,000 accounts, each with 1,000 contacts, the total DML rows exceed Salesforce’s 10,000-row limit for…