You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
โน๏ธ This gist is designed to serve as a structured guide for Salesforce developers looking to improve their technical skills through hands-on exercises and real-world implementations.
The primary goal is to list out useful exercises and ideas that can be applied within a Salesforce environment to enhance knowledge and problem-solving capabilities.
The document is divided into multiple sections, each focusing on different aspects of Salesforce development/cloud.
By following these exercises, developers will progressively enhance their expertise, making them well-equipped for real-world Salesforce implementations.
Why Do You Need a Salesforce Playground Environment?
A Salesforce Playground Environment is essential for developing, experimenting, and testing Salesforce solutions without rela affecting production environments.
This setup provides a safe space to:
Experiment with new Salesforce features and configurations.
Develop Apex code, Lightning Web Components (LWC), and automation flows in POC context.
Boost/train your DevOps skills by establishing CI/CD pipelines around your environment.
Test out Salesforce release updates before they're enforced.
By following this guide, you will create a pseudo-production environment that mimics an actual Salesforce deployment pipeline.
Prerequisites
Before starting, ensure you have the following:
โ Salesforce Free Developer Org with Dev Hub enabled.
โ Salesforce CLI installed and configured.
โ GitHub account with a new repository.
โ Fundamental knowledge of Git and Salesforce metadata management.
Establish a Pseudo-Production Environment
The first step involves configuring a free Salesforce Developer Edition org to act as a pseudo-production instance.
This environment will serve as the central repository for metadata and configurations, mimicking a real-world production setup.
Create and Structure Project
A dedicated GitHub repository should be initialized to store Salesforce metadata in a structured manner.
Organizing files logicallyโwhether by module, cloud, or functionalityโensures maintainability and clarity.
This repository will act as the single source of truth for tracking changes, collaborating on updates, and managing deployments.
Implement CI/CD Automations
Integrating a CI/CD pipeline is an essential component of a robust development workflow.
The following automations are highly recommended:
Pull Request Validation โ Triggers a validation deployment of changes from the feature branch to the production org whenever a pull request is created or updated.
Manual & Scheduled Deployments โ Ensures that the project's source code is redeployed to the production environment both manually & daily at the start of the day while executing Apex tests.
Another crucial automation to implement is SFDX Replacements. Utilize the dotenv NPM package to manage and configure environment variables efficiently.
Visual representation:
These automations form the minimum required setup. You can further enhance them by incorporating Prettier checks, PMD scans, Jest test executions, and other quality checks as needed.