Installation
Install Apex Consts in your Salesforce org.
Using Salesforce CLI
Deploy Source Code
bash
# Clone the repository
git clone https://github.com/beyond-the-cloud-dev/apex-consts.git
cd apex-consts
# Deploy to your org
sf project deploy start --target-org your-org-aliasManual Installation
Using Setup UI
- Navigate to Setup → Apex Classes
- Click New
- Copy the code from:
- Save each class
Dependencies
Apex Consts has zero dependencies. It works standalone.
API Version
Requires Salesforce API version 64.0 or higher.
Verification
Test the installation:
apex
System.debug(Consts.ACCOUNT.TYPE.PROSPECT); // 'Prospect'
System.debug(Consts.ACCOUNT.API_NAME); // 'Account'If these work, you're all set! ✅
