Welcome to Salesforce Code Library! This repository is a curated collection of useful, interesting, and advanced code for Salesforce development. The goal is to provide practical solutions, design patterns, and code snippets for a wide range of challenges across the platform.
Whether you're looking for a simple SOQL query, a complex LWC pattern, or an elegant Visualforce solution, you'll find a variety of high-quality examples here.
This repository is organized by technology. Each folder contains a specific solution, along with its own README.md
explaining the code, its use case, and any dependencies.
-
Apex
-
LWC (Lightning Web Components)
-
Visualforce
-
SOQL & SOSL
-
Aura Components
-
Other:
- Includes a variety of miscellaneous code and configurations, such as Salesforce CLI scripts, Flow configurations, and more...
- Browse the folders: Navigate through the directories to find a topic of interest.
- Read the
README
: Each solution has its own detailedREADME.md
file explaining the code. - Clone or Fork: If you find something useful, you can copy the code directly or fork the repository to use it in your own projects.
Your contributions are what make this a truly valuable resource! If you have a cool code snippet, a best-practice pattern, or a solution to a difficult problem, we'd love for you to share it.
- Fork the repository.
- Create a new folder for your contribution.
- Add your code and a detailed
README.md
explaining what it does and how to use it. - Submit a pull request.
This project is licensed under the MIT License - see the LICENSE.md file for details.