---
schema_version: "1"
id: c38af4f141815c96f8df0c0285fff80e7a5a1c84072a88b9d55e343ac4c50887
title: Deploy Apex Classes
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/energy_lasm_deploy_apex_classes.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.energy_lasm_deploy_apex_classes.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: bb0c5181f6370ab9eac101da1bfd99637c0827032dde2e62cade280ced017470
description: Deploy the Apex Classes from the SFDX datapack.
products:
  - Energy and Utilities
release: "264"
---
# Deploy Apex Classes

Deploy the Apex Classes from the SFDX datapack.

Before you begin:

- For orgs that use Standard OmniStudio Content and Runtime extract EUC\_LASM\_OSRT\_Sfdx\_Datapacks to the LASM\_SFDX folder. Create the folder if it doesn't already exist.
- For orgs that use Standard OmniStudio Content, extract EUC\_LASM\_Sfdx\_Datapacks to the LASM\_SFDX folder. Create the folder if it doesn't already exist.

1. For each folder, create the file **sfdx-project.json** which contains the following code:
    
    ```
    {
        "packageDirectories": [
            {
                "path": "salesforce_sfdx",
                "default": true
            }
        ],
        "namespace": "",
        "sfdcLoginUrl": "https://login.salesforce.com",
        "sourceApiVersion": "59.0"
    }
    ```
2. Move the **package.xml** file from salesforce\_sfdx/main/default to the LASM\_SFDX folder.
    
    ![SFDX datapack for Large Account Sales Management](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-energy_utilities-264-0-0-production-enus/520849e5-9b41-4bae-b97b-d269cc2fce83/energy_utilities/images/static_resources/lasm_sfdx_folder.png)
3. Open LASM\_SFDX in Visual Studio Code.
4. Authenticate your org if you have not already done so. See [Prepare Your Org for Large Account Sales Management Static Resources](https://help.salesforce.com/s/articleView?id=ind.energy_lasm_prepare_the_target_org_for_static_resources.htm&release=264.0.0&type=5 "Configure your org and install desktop utilities to prepare for the download and deployment of Large Account Sales Management resources.").
5. Deploy the components in the Classes folder from to your target org.
    1. In VSCode, in the left panel, right-click the salesforce-sfdx folder.
        
        For Mac devices, CMD + click the salesforce-sfdx folder.
    2. Click **SFDX: Deploy Source to Org**.
        
        If deployment fails for any component, select the components that failed and deploy them individually.

If you encounter errors deploying the SFDX datapacks, see [Troubleshoot Large Account Sales Management](https://help.salesforce.com/s/articleView?id=ind.energy_lasm_troubleshoot.htm&release=264.0.0&type=5 "Troubleshoot issues that can occur in deploying Large Account Sales Management.").

After all datapacks are deployed, perform post-deployment steps. See [Perform Post Deployment Steps Large Account Sales Management](https://help.salesforce.com/s/articleView?id=ind.energy_lasm_post_deployment_steps_static_resources.htm&release=264.0.0&type=5 "After downloading and deploying the Large Account Sales Management static resources, complete these post-deployment steps.").