Enroll for free demo AI ML COURSE

Category Archives : Salesforce Technical Questions

How to Handle Cascading Deletes for Complex Relationships in Salesforce?

On March 28, 2025, Posted by , In Apex Triggers,Salesforce Technical Questions, By ,, , With Comments Off on How to Handle Cascading Deletes for Complex Relationships in Salesforce?

In our Salesforce org, we have several custom object with deeply nested parent-child relationships (e.g., Object A → Object B → Object C). When deleting a record in the top-level object, we need to ensure that all related child records are properly handled according to specific business rules. Challenges: Questions:…

How to create a formula specific to the running user in Salesforce?

On March 28, 2025, Posted by , In Salesforce Technical Questions, With Comments Off on How to create a formula specific to the running user in Salesforce?

Question How can I edit a field without triggering validation rules for a specific user in Salesforce? I have a requirement where a particular field should be editable by a specific user without causing the validation rules to fire. If you are wondering how to create a formula specific to…

How to Downloading Source to VS Code?

On March 28, 2025, Posted by , In Salesforce Technical Questions, With Comments Off on How to Downloading Source to VS Code?

Question: I am new to Salesforce and trying to retrieve source code from my scratch org into VS Code. I used the Salesforce CLI (sf) to create a new project and then created some custom objects in my scratch org. Now, I am trying to download the source using the…

Apex Callout Fails Due to SunCertPathBuilderException?

On March 23, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on Apex Callout Fails Due to SunCertPathBuilderException?

Question I am trying to make an Apex callout from Salesforce to an external system hosted inside a corporate firewall. The firewall forwards the request to a load balancer, which then routes it to the appropriate web server. While the callout works correctly when tested from SOAP UI, it fails…

What Are the Available Static Code Analysis Tools for Apex?

On March 18, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on What Are the Available Static Code Analysis Tools for Apex?

Question What Are the Best Static Code Analysis Tools for Apex? I’m looking for static code analysis tools specifically designed for Apex development. While the Force.com Security Source Code Scanner is a well-known option, it has the limitation of operating through a queue system, which can delay the analysis. I’m…

PMD Errors in WSDL to Apex Classes?

On March 17, 2025, Posted by , In Salesforce Technical Questions, With Comments Off on PMD Errors in WSDL to Apex Classes?

Question: I am building an AppExchange app and have used WSDL to Apex to generate a Metadata service class. However, the generated class throws PMD errors in the “Code Style” category. The specific errors include: Can I add this Apex class to the “False Positive” list while submitting my app…

Can the Metadata API Be Invoked from Apex?

On March 16, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on Can the Metadata API Be Invoked from Apex?

Question: Is it possible to use the Salesforce Metadata API from within Apex? Can the Metadata API be invoked from Apex? Many sources state that Salesforce doesn’t allow callouts to its own web services from within Salesforce. However, other posts and resources suggest it might be achievable, especially for specific…

Why Do We Still Hack the Sidebar?

On March 12, 2025, Posted by , In Salesforce Technical Questions, By ,, , With Comments Off on Why Do We Still Hack the Sidebar?

Question Despite advancements in Salesforce customization, many users still rely on sidebar workarounds. I’m interested in learning about the specific use cases, the challenges you’ve encountered, and—most importantly—strategies to address these issues using alternative, more official approaches. This discussion relates to methods like those explored in End of JavaScript Sidebar…

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,…

How to debug Apex code effectively?

On March 10, 2025, Posted by , In Apex,Salesforce Technical Questions, With Comments Off on How to debug Apex code effectively?

Question: I’m new to Salesforce development and would like to learn how to debug my Apex code effectively. I often encounter issues in my triggers and controllers but struggle to identify the root causes. What steps or tools can I use to output debug information, investigate issues, and resolve errors…