- 16 May 2023
- 2 Minutes to read
Add a project to CodeScan from Salesforce
- Updated on 16 May 2023
- 2 Minutes to read
This document guides how to add a Salesforce project to your CodeScan cloud account and run the analysis.
- Login into your CodeScan account.
- Once you log into your CodeScan account, click the
+icon in the top right corner and select
Analyze new project.
- It takes you to a different window. Choose the
Organizationfor which you'd like to create a project. Click
- In the next window, click on
Add Analysis Projectoption.
- You will now see a new popup window; select
Salesforcefrom the given options.
- Next, choose the environment from the dropdown between Production/Developer, My own domain, and Sandbox.
Production/Developer:Production/Developer refers authenticating users to Salesforce.com for a Developer account and/or a Production account using the username and password at login.salesforce.com.
Sandbox:Sandboxes are test environments that provide a way to copy and create metadata from a production org (above). It is a separate environment where you can test (including seeding with data). There are four different types of sandboxes, accessed at test.salesforce.com.
My own domain:Choose this if you have set up your domain or custom URL to access your Salesforce org rather than https://login.salesforce.com. Next, specify the Salesforce login URL in the text box. For example, https://mydomainname.my.salesforce.com. Companies and admins can better manage login and authentication for their Salesforce orgs by creating a custom domain.
- Click on
Authorize. It will redirect to the Salesforce login page. Validate your credentials and click on
- You will be redirected back to the CodeScan app.
- In CodeScan, on
Add a new projectscreen, fill in the below details:
project keyand the
project nameare auto-assigned. You can edit the fields as per your need.Note: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 Versionfield.
- Choose the
Unit Test Modefrom 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
Scheduling, you can set the time frame for the analysis to run. You can 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. This triggers the project analysis and the added project under your CodeScan organization.
- You'll be redirected to the
Project Analysisscreen to view the status of your analysis triggered.
- View the log report by clicking on
Gear() icon drop-down and selecting
"ip restricted" error: If your scan fails with the IP restricted error, please refer to the Troubleshooting article.