Category Archives : Salesforce Technical Questions

How to Use Field Sets in Lightning?

On July 21, 2025, Posted by , In LWC Essentials,Salesforce Technical Questions, With Comments Off on How to Use Field Sets in Lightning?

Question: I have been trying to create a Salesforce Lightning input form based on fields from a field set. Since an Aura-enabled Apex method cannot return an entire field set directly, I attempted to convert it into a JSON string and pass it to the Lightning component. While this approach…

How to get the entity ID for a custom field in Apex?

On July 19, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on How to get the entity ID for a custom field in Apex?

Question I need a way to get the 15-character entity ID for a custom field on the Lead object in an Apex controller. I tried using the following method: However, I ran into an issue since there is no getId() method available, so this approach doesn’t work. How can I…

LWC Datatable Filtering with Infinite Scrolling?

On July 17, 2025, Posted by , In LWC Essentials,Salesforce Technical Questions, With Comments Off on LWC Datatable Filtering with Infinite Scrolling?

Question: I’m struggling to filter my Lightning Web Component (LWC) datatable while using infinite scrolling. When applying a filter, the component seems to duplicate rows and also fails to trigger the onloadmore event for infinite scrolling. I have a custom datatable that loads an initial set of five records from…

How to Navigate from LWC to Visualforce Page with Parameters?

On July 17, 2025, Posted by , In LWC Essentials,Salesforce Technical Questions, With Comments Off on How to Navigate from LWC to Visualforce Page with Parameters?

Question How can I navigate from an LWC component to a Visualforce page with parameters, while ensuring compatibility with Salesforce Communities? The LWC framework offers the NavigationMixin.Navigate functionality, which allows for obtaining URLs and performing navigation to generated URLs. This supports various page types, as detailed in the documentation. However,…

Why am I getting the Uncaught TypeError in LWC?

On July 15, 2025, Posted by , In LWC Essentials,Salesforce Technical Questions, With Comments Off on Why am I getting the Uncaught TypeError in LWC?

Question: I am working with a Lightning Web Component (LWC) and trying to update a field on a Contact record, but I am encountering the following exception: Uncaught TypeError: ‘set’ on proxy: trap returned falsish for property ‘Name’ Here’s the code I’m working with: HTML Code: JavaScript Code: Apex Code:…

How to Query Contact Fields from an Opportunity?

On July 13, 2025, Posted by , In Salesforce Technical Questions,SOQL, With Comments Off on How to Query Contact Fields from an Opportunity?

Question: I need to retrieve a list of opportunities, including a related contact’s name. Each Opportunity has a lookup field called CPA_Contact__c, which stores the ID of a Contact record. I want to include Contact.Name in my query results based on the Contact ID stored in CPA_Contact__c. I attempted the…

How to Handle Selection List Validation Issues in ScreenFlow?

On July 13, 2025, Posted by , In Salesforce Technical Questions, With Comments Off on How to Handle Selection List Validation Issues in ScreenFlow?

In Salesforce ScreenFlow, you may encounter an issue where a Selection List field prompts an error message like “Please select one option” even when the field is not marked as required. This behavior can occur due to changes introduced in updates like Winter ’25, which may enforce stricter validation rules…

How to Use a Picklist in a for:each Loop in LWC?

On July 11, 2025, Posted by , In LWC Essentials,Salesforce Technical Questions, With Comments Off on How to Use a Picklist in a for:each Loop in LWC?

Question I have a requirement to display and edit records in a table. These records need to be saved and will also be used to create different objects. Currently, I am using the following code, which works for displaying and editing fields. However, I have two questions: Here is my…

Cannot Find API Platform Connected App?

On July 7, 2025, Posted by , In Salesforce Technical Questions, With Comments Off on Cannot Find API Platform Connected App?

Question: We use a gateway (Kong) between Salesforce and external systems, and I need to add the consumer key of the Salesforce connected app “API Platform” to Kong for authentication. However, I cannot find “API Platform” in the “App Manager” or “Manage Connected Apps” menu. I searched for a solution…

Troubleshooting ApexMocks Issues

On July 5, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on Troubleshooting ApexMocks Issues

Question Why Am I Getting Unexpected Results While Using ApexMocks? When using ApexMocks for unit testing in Salesforce, unexpected results can arise due to various reasons. Troubleshooting ApexMocks issues is essential to ensure accurate test outcomes. Some common symptoms include: These issues typically stem from improper setup, argument mismatches, or…