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?
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?
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
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?
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
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
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…
Publishing Platform Event with JSON in a Text Field?
Question When attempting to publish a Platform Event with a valid JSON object inside a custom text field (Message__c), the serialized JSON string appears with backslashes before special characters such as double quotes (“). For example, when assigning the following JSON to Message__c: The resulting event payload contains an escaped…
Downloading Large Files and Uploading to Salesforce Static Resources
Question: I need to download a large .gz file and upload it to Salesforce as a Static Resource. The file is significantly larger than Salesforce’s HTTP response size limit (6 MB), making direct download via an Apex HTTP callout infeasible. My goal is to: Answer: I attempted an HTTP callout…
Retrieving Components from Your Managed Package Version in Salesforce
Question: I have a developer org where I created a 1st-generation managed package with an assigned namespace. Over a year ago, I uploaded a released package version. Since then, I’ve implemented bug fixes, added features, and now plan to upload a new released package version. However, I need to create…