validateSalesforce
Validate a Salesforce artifact with Salesforce Organization or sandbox.
Supports Full or Package-Based projects. Validating a FlexDeploy Salesforce package zip file from theĀ FD_ARTIFACTS_DIR
. This file must have been created by the buildSalesforce operation.
This operation can be used in pre-deploy or deploy workflow to validate the package with the target Salesforce Org. This operation takes the package artifact and checks against the target Salesforce Org and executes the tests specified at the Package level.Ā
This operation returns the Deployment Id as an Output. The Deployment Id can be used to commit the deployment package using the Commit Deployment operation.
Target Properties
Property Name | Property Code | Required | Description |
---|---|---|---|
Salesforce Account Code |
| Yes | Salesforce Account with all the required properties like User, Password, Client Id, etc. |
Salesforce HTTPS protocol |
| No | The HTTPS protocol to use to secure the connection. Defaults to TLSv1.2. |
Salesforce API Version |
| No | The Salesforce API version to target. This Default will likely change with each FlexDeploy server and Salesforce plugin release in the future. The maximum supported version of Salesforce API that is supported is linked to the version of FlexDeploy currently running. |
Salesforce Deploy Timeout |
| Yes | The Salesforce Deploy Timeout in seconds. Executions exceeding this value will be declared as Failed with timed out error in FlexDeploy Defaults to 3600 seconds (1 hour) |
Rollback On Error |
| No | Indicates whether any failure causes a complete rollback (true) or not (false) |
Cloud Account Properties
Property Name | Property Code | Required | Description |
---|---|---|---|
Salesforce User Email |
| Yes | Authentication User Email. |
Salesforce Password |
| No | The Salesforce password for Salesforce User. If you are using a security token, paste the 25-digit token value to the end of your password. If you don't know the security token, see http://salesforce.stackexchange.com/questions/95259/where-is-reset-security-token-option-in-salesforce |
JWT Key File |
| No | Path to a file containing the private key |
Client Id |
| No | OAuth client ID (sometimes called the consumer key) |
Development Org Type |
| No | Enter Org type for Development Environment. Eg: Sandbox or DevHub or Developer |
Salesforce URL |
| No | The login URL of the instance the org lives on |
Sandbox Name |
| No | The name of a Sandbox to access |
Inputs
Input Name | Input Code | Required | Description |
---|---|---|---|
ArtifactĀ TestĀ Level |
| No | TestĀ LevelĀ forĀ currentĀ artifact/package.Ā OverridesĀ TestĀ LevelĀ setĀ for the package. Accepted values are NoTestRun, RunSpecifiedTests, RunLocalTests and, RunAllTestsInOrg. |
Artifact Tests |
| No | TestsĀ forĀ currentĀ artifact/package.Ā OverridesĀ TestsĀ setĀ for the package. Only used when the Test Level input is set to RunSpecifiedTests. |
Outputs
Output Name | Required | Description |
---|---|---|
| No | Outputs the deployment id so that it can be used in commit deployment operations or to look up the status of the deployment in the Salesforce UI. |
| No | Number Test cases Fail |
| No | Number of Test cases Success |
| No | Number of Test cases Run |
| No | Test Percentage |
| No | Code Coverage Percentage |
ArtifactsĀ
This operation consumes artifacts from the artifacts repository.
Endpoint Selection
This operation will select all available endpoints associated with the Target.
Endpoint Execution
This operation will execute on any one of the selected endpoints and will be random in the determination of which one.
- style