Category: Salesforce Technical Questions
-
How to Parse JSON and Upsert Data?
Question I’m trying to parse JSON data stored in a field (Product2) in a Salesforce Marketing Cloud Data Extension (DE) and then upsert the parsed data into another DE. I have written a Server-Side JavaScript (SSJS) script to retrieve the JSON from each row, parse it using Platform.Function.ParseJSON(), extract specific fields (like ProductCode, environment, etc.),…
-
How to Handle Translations in 2GP Package?
Question I am working on a second-generation managed package and need to add translations for some Lightning Web Components (LWCs) into German. The translations are implemented using Custom Labels, stored in CustomLabels.labels-meta.xml, and the German translations are stored in de.translation-meta.xml inside the translations folder. Before creating a new beta version of the package, I added…
-
Expression Functions in LWC?
Question How can expression functions, similar to those used in Visualforce and Lightning Aura Components, be implemented within Lightning Web Components (LWC)? For instance, in the following code, the expression index % 5 == 0 does not compile in LWC: accountList.html accountList.js: Since LWC does not support expression functions, how can I implement similar functionality,…
-
Render React SPAs in Salesforce Without Iframes?
I’m facing a challenge with rendering complex React Single Page Applications (SPAs) within the Salesforce interface. We’ve maximized what can be achieved with Lightning Web Components (LWC), but now we need to load complex React-based components that rely on data not stored in Salesforce. The goal is to allow our engineering team to develop standalone…
-
How to Send Case Survey to SuppliedEmail on Case Closure?
Question I have created a survey to collect customer feedback, and I would like to send it to the email address in the “SuppliedEmail” field on the Case. I have explored using Case Auto-Response Rules and the Support Settings – Customer Feedback Survey, but I was unable to find a way to send the survey…
-
Why does my after-delete trigger fail?
Question I’m encountering an issue with the following trigger method. When attempting to delete an employee record (via UI), the operation fails, and I get this error: “There’s a problem saving this record. You might not have permission to edit it, or it might have been deleted or archived.” Here is my trigger: The trigger…
-
How to Remove Blue Focus Outline from LWC Datatable?
Question I have created a Lightning Web Component (LWC) that includes a datatable. When I click on a cell in the datatable, it gets focused and displays a blue outline. I would like to remove this focus outline, but so far, I haven’t been successful. I referred to the SLDS documentation and tried applying the…
-
Why Does My Trigger Fail on Record Deletion?
Question Can you help me identify the issue with the following trigger and method? I’m encountering an error when trying to delete an employee record via the UI. The error message displayed is: “There’s a problem saving this record. You might not have permission to edit it, or it might have been deleted or archived.…
-
How to Log Lead Inserts Without Duplicates?
Question I have a requirement to log every attempt to insert a Lead into a custom object called Lead_Log__c. This log needs to be created regardless of whether the Lead insert is successful or fails validation. To achieve this, I initially used a before insert trigger on the Lead object. However, I faced challenges with…
-
What Is a GACK in Salesforce Error Logs?
Question I’ve been working with Salesforce Support to address an internal server error linked to a GACK code (2134764861-123797 (1611479512)). After weeks of back-and-forth, I was informed that escalation requires reproducing the issue in a controlled manner. To expedite the process, I created a minimal reproducible test case (linked here: GitHub Repository). However, this was…