Add a project to CodeScan from Salesforce
  • 03 Nov 2022
  • 1 Minute to read
  • Contributors
  • Dark

Add a project to CodeScan from Salesforce

  • Dark

This document is a guide on how to add a Salesforce project to your CodeScan cloud account and run the analysis.

  1. Login into your CodeScan account.
  2. Once you login into your CodeScan account, on the top right corner, click on the + icon and select Analyze new project.CodeScan cloud
  3.  It takes you to a different window. Choose the Organization for which you'd like to create a project. Click Set Up.analyze projects
  4. In the next window, click on Add Analysis Project option.add analysis project
  5. You will now see a new popup window; select Salesforce from the given options.add a new project
  6. Next, choose the environment from the dropdown between Production/Developer, My own domain, and Sandbox. Click on Authorize.add a new project
  7. Once you click on Authorize, it will redirect to the Salesforce login page. Validate your credentials and click on Login.salesforce login
  8. On Add a new project screen, you will need to:
    • The project key and the project name are auto-assigned. You can edit the fields as per your need.
      To know where to find the project key, refer to our document on how to do it by clicking HERE.
    • Enter the project version under the Default Project Version field.
    • Choose the Unit Test Mode from the dropdown. This allows you to configure which unit tests are run by the analysis. Example- Run Unit Tests, Use Previous Run, or keep it in disabled mode
    • Under Scheduling, you can set the time frame for the analysis to run. You can choose to run the project automatically by selecting Daily or manually by selecting Manual. If you select Daily, another field named Schedule has to be selected by choosing the time you want the automatic analysis to be triggered.Add and Run Now
  9. Click Add and Run Now. This triggers the project analysis along with the project being added under your CodeScan organization.
  10. You'll be redirected to the Project Analysis screen, where you can view the status of your analysis triggered.
  11. View the log report by clicking on Gear () icon drop-down and selecting Logs.

"ip restricted" error: If your scan fails with the IP restricted error, please refer to the Troubleshooting article.

Was this article helpful?