Deploying the Apex Class Using Workbench API
Follow the procedure below to deploy the Apex class using Workbench API:
-
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.
-
Navigate to Migration in the Workbench API, and then Deploy.
-
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.
-
Click Choose File to upload the ZIP file and choose the Check Only and Single Package checkboxes to validate the deployment.
-
Choose the Test Level as No TestRun from the dropdown list.
-
Click Next.
-
Click Deploy in the next page. A list of success and failure components are displayed.
-
Log in to the Salesforce system.
-
Navigate to Setup and search for Deployment Status in the Quick Find.
Note: The Deployment Status page displays if the validation is successful.
-
Navigate to Migration in the Workbench, and then Deploy.
-
Click Choose File in Deploy to choose the Tidal_Apex_Bridge_Workbench_Deployment.Zip from the SalesforceBridge folder to deploy.
-
Choose Rollback on Error and Single Package checkboxes. Rollback on Error reverts the changes and does not deploy them in case of error.
-
Click NoTestRun in the Test Level dropdown list.
-
Click Next. The Deploy page displays the deployment options to be confirmed.
-
Validate and click Deploy. The Status in Workbench displays the deployment status along with the other details.
-
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.
-
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.