Deploying the Apex Class Using Workbench API

Follow the procedure below to deploy the Apex class using Workbench API:

  1. Log in to Workbench API.

    Note: If you use the test or development account, you must use the Sandbox environment, and if you use the production account, you must use the Production environment.

  2. Navigate to Migration in the Workbench API, and then Deploy.

  3. Copy the Tidal_Apex_Bridge_Workbench_Deployment.Zip file from SalesforceBridge folder to your local system.

    Note: The Tidal_Apex_Bridge_Workbench_Deployment.Zip file contains Classes folder and the Package.XML file.

  4. Click Choose File to upload the ZIP file and choose the Check Only and Single Package checkboxes to validate the deployment.

  5. Choose the Test Level as No TestRun from the dropdown list.

  6. Click Next.

  7. Click Deploy in the next page. A list of success and failure components are displayed.

  8. Log in to the Salesforce system.

  9. Navigate to Setup and search for Deployment Status in the Quick Find.

    Note: The Deployment Status page displays if the validation is successful.

  10. Navigate to Migration in the Workbench, and then Deploy.

  11. Click Choose File in Deploy to choose the Tidal_Apex_Bridge_Workbench_Deployment.Zip from the SalesforceBridge folder to deploy.

  12. Choose Rollback on Error and Single Package checkboxes. Rollback on Error reverts the changes and does not deploy them in case of error.

  13. Click NoTestRun in the Test Level dropdown list.

  14. Click Next. The Deploy page displays the deployment options to be confirmed.

  15. Validate and click Deploy. The Status in Workbench displays the deployment status along with the other details.

  16. Verify the Deployment Status in the target Salesforce system.

    Successful deployment is indicated by the message Deploy: Succeeded. The message Deploy: Failed indicates an unsuccessful deployment.

  17. Navigate to Apex Classes in the Salesforce Organization to check the list of Apex Classes added.

    Note: To deploy the code, either follow above steps or refer to the Replacement Tools for Workbench.