Skip to content

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-alias

Manual Installation ​

Using Setup UI ​

  1. Navigate to Setup → Apex Classes
  2. Click New
  3. Copy the code from:
  4. Save each class

Dependencies ​

Apex Consts has zero dependencies. It works standalone.

API Version ​

Requires Salesforce API version 66.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! ✅

Next Steps ​