Category Developers

Content related with developers

Code Builder | VS Code for Salesforce

Code Builder is a cutting-edge, web-based development environment designed specifically for Salesforce. It is powered by AWS and allows you to launch a full-featured IDE in your browser from your Salesforce org with the click of a button. There is nothing to install or configure on your device, so you won't have to spend hours installing developer tools!

10 Best Practices for Apex Code

This article outlines Salesforce Apex's coding best practices, including not using DML/SOQL/SOSL statements in loops, avoiding hardcoded IDs, utilizing only one trigger per SObject Type, delegating triggers to regular classes, ensuring code is bulkified, preventing SOQL injection, not using seeAllData in unit tests, using braces in for loops, maintaining correct naming conventions, avoiding debug statements and including assertions in unit tests.

LWC | Call External APIs from JavaScript

The Lightning Component framework uses Content Security Policy (CSP), a W3C standard, to control and restrict content loaded on a page to prevent cross-site scripting and other code injection attacks. The default CSP policy does not allow API calls from JavaScript code. To make API calls, a remote site needs to be added as a CSP Trusted Site in the Salesforce org. The article also provides a step-by-step guide to add a CSP trusted site and make an API call from JavaScript code successfully.