Category Archives : Salesforce Technical Questions

Deserializing JSON with Reserved Words as Properties in Apex

On March 10, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on Deserializing JSON with Reserved Words as Properties in Apex

Question How to Deserialize JSON with Reserved Words as Property Names in Apex? Is there a way to deserialize JSON into an Apex object using JSON.deserialize, even if some of the property names in the JSON correspond to reserved keywords in Apex? For example, when deserializing JSON with reserved words,…

Does setting a lookup field trigger a SOQL query?

On March 9, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on Does setting a lookup field trigger a SOQL query?

Question: When working with Apex, a common question that arises is whether creating a new record with a lookup field will trigger a SOQL query. For example, if you create a new Contact and assign it to a lookup field of a Case record, does it result in a SOQL…

How to Clone a Record with Related Lists?

On March 6, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on How to Clone a Record with Related Lists?

Question: I need to clone all Account records along with their associated Contact records. I am using the clone() method in Apex for this. Below is the code I have written: I am unable to figure out how to associate the cloned contacts with the corresponding cloned accounts. Since the…

How to Run a Scheduled Job Every 15 Minutes?

On March 5, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on How to Run a Scheduled Job Every 15 Minutes?

Question: Salesforce’s built-in GUI for scheduling jobs does not allow setting an interval shorter than one day. However, I need to run a scheduled job every 15 minutes. How can I achieve this in Apex? CRS Info Solutions offers industry-leading Salesforce training in Singapore with real-time projects, Salesforce training certification guidance, interview coaching, and…

Dynamic Scale for Currency Field in Salesforce?

On March 4, 2025, Posted by , In Salesforce Technical Questions, With Comments Off on Dynamic Scale for Currency Field in Salesforce?

Question Is It Possible to Dynamically Adjust the Scale for a Custom Currency Field in Salesforce? I have a custom field of type currency and would like to adjust the scale (decimal precision) dynamically based on the required precision. For example: My Questions: I’m trying to determine the best approach…

Why doesn’t NavigationMixin work in Lightning Modal or Child Components?

On March 4, 2025, Posted by , In LWC Essentials,Salesforce Technical Questions, With Comments Off on Why doesn’t NavigationMixin work in Lightning Modal or Child Components?

Question: When using NavigationMixin within a child component or in a Lightning modal, the GenerateUrl method doesn’t seem to work as expected. The result returned by the promise is null, and I’m not sure if this is the designed behavior or an issue. Here’s an example of the test code…

CPQ: Refresh Quote Prices as triggering action

On March 3, 2025, Posted by , In Salesforce Technical Questions, With Comments Off on CPQ: Refresh Quote Prices as triggering action

Question: When clicking “Refresh Prices” on a Salesforce CPQ Quote, does this action update any field on the Quote or any related object? Is there any way to track or timestamp this action to reflect that the prices were refreshed? My goal is to show a conditional button on the…

How to send an email from a Salesforce sandbox to Gmail?

On March 2, 2025, Posted by , In Salesforce Technical Questions, With Comments Off on How to send an email from a Salesforce sandbox to Gmail?

Question I am trying to send emails from a Salesforce sandbox to a Gmail address, but every attempt results in the following error: “Unauthenticated email from xyzyxz.com is not accepted due to domain’s DMARC policy.” All my email addresses in the sandbox use the domain xyzyxz.com, and it seems Gmail…

Dynamic REST API JSON Body Using Field Sets in Apex

On March 1, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on Dynamic REST API JSON Body Using Field Sets in Apex

Question: I need to construct the request body for a REST POST call in which the key (Field API Name) and its corresponding value are dynamically included in JSON format. The field API names are retrieved from a field set, and the values come from a database query. For example,…

Best Practices for Deploying System Admin Profiles in Salesforce

On February 28, 2025, Posted by , In Salesforce Technical Questions, With Comments Off on Best Practices for Deploying System Admin Profiles in Salesforce

Question: When working with Salesforce sandboxes and production environments, deploying profiles, particularly the System Admin profile, can be tricky, especially when the profile includes access to a large number of fields across objects. The issue arises when sandboxes have different configurations and objects, as well as varying field-level access, and…