Category: Salesforce Admin
-
How can I access error responses from an HTTP Callout Action in Flow?
When you build an HTTP Callout Action in Salesforce Flow and you only define a successful response schema such as 2XX, Flow only maps fields for responses that match that code range. When your external service responds with a 400 or any other non-2XX status code, Flow technically receives the body, and the debug screen…
-
How to Download CSV Files in LWC on Experience Cloud?
In Salesforce Experience Cloud, downloading files like CSVs using Lightning Web Components (LWC) can be tricky because of platform restrictions, browser security, and file storage considerations. Many developers try to use static resources, custom metadata, or Apex to serve the file, but the download often fails when triggered programmatically from LWC. Here’s a detailed explanation…
-
Why Does Salesforce CLI Warn About GlobalValueSets Not Found Locally?
When deploying metadata using the Salesforce CLI, you might encounter warnings like these, even though the deployment completes successfully: This situation can be confusing because the Global Value Sets (GVS) clearly exist in your local project under: Why Does This Happen? This behavior is caused by a change introduced in Salesforce API version 57.0 and…
-
How Do You Set Up Views and Navigation in Lightning?
How can I create multiple views in Lightning and navigate between them? For example, if I have two components, ns:foo and ns:bar, how can I implement a button in each component that allows me to switch to the other component or render it in place of the current one? Answer: In Lightning (Aura), the best…
-
Why is my VF email link not showing?
Question: I have a Visualforce email template in Salesforce where I am using a Visualforce component to include a URL link using an anchor (<a>) tag. However, when I send a test email, the link does not appear. I even tried adding the anchor tag directly in the email template, but the URL still does…
-
Why does Apex SOQL return RecordTypeId automatically?
When writing SOQL inside Apex, you might notice that Salesforce sometimes returns additional fields in the result even though they were not explicitly queried. A very common example is the RecordTypeId field. Developers are often surprised to see this in debug logs, especially when the SOQL query clearly did not include this field. Consider this…
-
What Are the Best Practices for General Trigger Bulkification?
What are the best practices for bulkifying Apex triggers in Salesforce? Also, how should we handle scenarios where more than 200 records are updated, since this will cause the trigger to execute multiple times? Answer Bulkification in Salesforce refers to designing Apex triggers and classes so they can efficiently handle large batches of records. Because…
-

Is boxcarring removed from Lightning Web Components (LWC)?
When working with Lightning Web Components, many developers notice that Apex calls seem to run individually rather than being grouped together. Since LWC does not expose something like action.setBackground() (as used in Aura to influence boxcarring behavior), a natural question comes up: has Salesforce removed boxcarring for LWC server calls? The short answer is: No,…
-

How Can You Filter Opportunity Owner ID in Apex Reports?
When you build Salesforce reports programmatically in Apex using the Reports namespace, one common task is adding filters dynamically. A typical requirement is filtering an Opportunity report by the Owner ID. However, developers often run into a confusing error when attempting this because the column name for Opportunity Owner ID is not straightforward. The question…
-
How to Custom Scroll in Lightning Components?
In Salesforce Lightning, I am trying to implement custom scroll functionality inside a ui:inputTextArea component. I wanted to use the jQuery nicescroll plugin to add a “nice scroll” effect. My approach was to access the textarea element using its aura:id like this: However, this approach fails when Locker Service is active, producing the following error:…